We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62b37f2 commit 7e7497aCopy full SHA for 7e7497a
.github/workflows/eslinter.yml
@@ -0,0 +1,34 @@
1
+---
2
+
3
+on: # yamllint disable-line rule:truthy
4
+ workflow_call:
5
+ inputs:
6
+ repository:
7
+ description: 'The repository that needs linting'
8
+ type: string
9
+ default: ${{ github.repository }}
10
+ required: false
11
+ ref:
12
+ description: 'The branch, tag or SHA that needs linting'
13
14
15
+ default: ${{ github.ref }}
16
17
+jobs:
18
+ linter:
19
+ runs-on: ubuntu-latest
20
21
+ steps:
22
+ - uses: actions/setup-node@v4
23
+ with:
24
+ node-version: latest
25
26
+ - name: Checkout Code
27
+ uses: actions/checkout@v4
28
29
+ fetch-depth: 0
30
+ repository: ${{ inputs.repository }}
31
+ ref: ${{ inputs.ref }}
32
33
+ - name: Lint ECMAScript
34
+ run: eslint . --ext .js
0 commit comments