mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #5174 from thornbill/unify-stylelint-config
Fix stylelint scss config to use main config file
This commit is contained in:
commit
5a6fe31c69
4 changed files with 22 additions and 43 deletions
30
.github/workflows/quality.yml
vendored
30
.github/workflows/quality.yml
vendored
|
@ -56,8 +56,8 @@ jobs:
|
||||||
- name: Run eslint
|
- name: Run eslint
|
||||||
run: npx eslint --quiet "."
|
run: npx eslint --quiet "."
|
||||||
|
|
||||||
run-stylelint-css:
|
run-stylelint:
|
||||||
name: Run stylelint (css)
|
name: Run stylelint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -78,31 +78,7 @@ jobs:
|
||||||
run: npm ci --no-audit
|
run: npm ci --no-audit
|
||||||
|
|
||||||
- name: Run stylelint
|
- name: Run stylelint
|
||||||
run: npm run stylelint:css
|
run: npm run stylelint
|
||||||
|
|
||||||
run-stylelint-scss:
|
|
||||||
name: Run stylelint (scss)
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Check out Git repository
|
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
||||||
|
|
||||||
- name: Setup node environment
|
|
||||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
|
||||||
with:
|
|
||||||
node-version: 20
|
|
||||||
check-latest: true
|
|
||||||
cache: npm
|
|
||||||
|
|
||||||
- name: Set up stylelint matcher
|
|
||||||
uses: xt0rted/stylelint-problem-matcher@34db1b874c0452909f0696aedef70b723870a583 # tag=v1
|
|
||||||
|
|
||||||
- name: Install Node.js dependencies
|
|
||||||
run: npm ci --no-audit
|
|
||||||
|
|
||||||
- name: Run stylelint
|
|
||||||
run: npm run stylelint:scss
|
|
||||||
|
|
||||||
run-tsc:
|
run-tsc:
|
||||||
name: Run TypeScript build check
|
name: Run TypeScript build check
|
||||||
|
|
|
@ -143,5 +143,20 @@
|
||||||
"value-list-comma-space-after": "always-single-line",
|
"value-list-comma-space-after": "always-single-line",
|
||||||
"value-list-comma-space-before": "never",
|
"value-list-comma-space-before": "never",
|
||||||
"value-list-max-empty-lines": 0
|
"value-list-max-empty-lines": 0
|
||||||
|
},
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"*.scss",
|
||||||
|
"**/*.scss"
|
||||||
|
],
|
||||||
|
"customSyntax": "postcss-scss",
|
||||||
|
"plugins": [ "stylelint-scss" ],
|
||||||
|
"rules": {
|
||||||
|
"at-rule-no-unknown": null,
|
||||||
|
"scss/at-rule-no-unknown": true,
|
||||||
|
"plugin/no-browser-hacks": null
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
{
|
|
||||||
"extends": [ "./.stylelintrc.json" ],
|
|
||||||
"customSyntax": "postcss-scss",
|
|
||||||
"plugins": [ "stylelint-scss" ],
|
|
||||||
"rules": {
|
|
||||||
"at-rule-no-unknown": null,
|
|
||||||
"scss/at-rule-no-unknown": true,
|
|
||||||
"plugin/no-browser-hacks": null
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -149,9 +149,7 @@
|
||||||
"lint": "eslint \"./\"",
|
"lint": "eslint \"./\"",
|
||||||
"test": "vitest --watch=false --config vite.config.ts",
|
"test": "vitest --watch=false --config vite.config.ts",
|
||||||
"test:watch": "vitest --config vite.config.ts",
|
"test:watch": "vitest --config vite.config.ts",
|
||||||
"stylelint": "npm run stylelint:css && npm run stylelint:scss",
|
"stylelint": "stylelint \"src/**/*.{css,scss}\""
|
||||||
"stylelint:css": "stylelint \"src/**/*.css\"",
|
|
||||||
"stylelint:scss": "stylelint --config=\".stylelintrc.scss.json\" \"src/**/*.scss\""
|
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=20.0.0",
|
"node": ">=20.0.0",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue