Skip to content

Commit b791fd9

Browse files
committed
Refactor stylelinter
1 parent 4df3c5f commit b791fd9

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/eslinter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ jobs:
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

.github/workflows/stylelinter.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff 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

2727
jobs:
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 }}

0 commit comments

Comments
 (0)