File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 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+ type : string
14+ required : false
15+ default : ${{ github.ref }}
16+
17+ jobs :
18+ linter :
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - name : Install Node.JS
23+ uses : actions/setup-node@v4
24+ with :
25+ node-version : latest
26+
27+ - name : Install ESlint
28+ run : npm init @eslint/config@latest
29+
30+ - name : Checkout Code
31+ uses : actions/checkout@v4
32+ with :
33+ fetch-depth : 0
34+ repository : ${{ inputs.repository }}
35+ ref : ${{ inputs.ref }}
36+
37+ - name : Lint ECMAScript
38+ run : eslint . --ext .js
You can’t perform that action at this time.
0 commit comments