File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 4141 npm install eslint eslint-config
4242
4343 - name : Lint JavaScript
44- run : ./node_modules/.bin/eslint --config=${{ inputs.config}}
44+ run : ./node_modules/.bin/eslint --config=${{ inputs.config }}
4545 env :
4646 DEBUG : eslint:languages:js
Original file line number Diff line number Diff line change @@ -22,23 +22,27 @@ on: # yamllint disable-line rule:truthy
2222 description : ' The location of the linter-configuration'
2323 type : string
2424 required : false
25- default : ' tools/linters/'
25+ default : ' tools/linters/.stylelintrc.json '
2626
2727jobs :
2828 linter :
2929 runs-on : ubuntu-latest
3030
3131 steps :
32+ - name : Install NodeJS
33+ uses : actions/setup-node@v4
34+ with :
35+ node-version : latest
36+
3237 - name : Checkout Code
3338 uses : actions/checkout@v4
3439 with :
3540 fetch-depth : 0
3641 repository : ${{ inputs.repository }}
3742 ref : ${{ inputs.ref }}
3843
44+ - name : Install StyleLint
45+ run : npm install stylelint stylelint-config-standard
46+
3947 - name : Lint stylesheets
40- uses : actions-hub/stylelint@v1.1.6
41- env :
42- PATTERN : ${{ inputs.pattern }}
43- INDENT_SPACES : 2
44- CONFIG_PATH : ${{ inputs.config_file }}
48+ run : ./node_modules/.bin/stylelint --config=${{ inputs.config_file }} ${{ inputs.pattern }}
You can’t perform that action at this time.
0 commit comments