Merge pull request #292 from EdouardVanbelle/chore/css-rules

This commit is contained in:
Dionisio Pozo
2026-04-14 01:20:50 +02:00
committed by GitHub
2 changed files with 38 additions and 1 deletions
+11 -1
View File
@@ -32,6 +32,8 @@ jobs:
frontend:
- 'static/**'
- 'biome.json'
- '.grit'
- '.stylelintrc.json'
- 'jsconfig.json'
backend:
- 'src/**'
@@ -39,7 +41,7 @@ jobs:
- 'Cargo.lock'
frontend-linter:
name: Frontend — Biome
name: Frontend — CSS and JS checks (format, lint, rules, etc)
needs: changes
if: needs.changes.outputs.frontend == 'true'
runs-on: ubuntu-latest
@@ -52,6 +54,14 @@ jobs:
- name: Run Biome check
run: biome ci static/
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 25
- name: Run Stylelint
run: npx stylelint "**/*.{css,scss}"
rust-fmt:
name: Rustfmt
needs: changes
+27
View File
@@ -0,0 +1,27 @@
{
"rules": {
"color-no-hex": true,
"color-named": "never",
"function-disallowed-list": ["rgb", "rgba", "hsl", "hsla", "hwb", "oklch", "oklab"],
"selector-disallowed-list": ["/\\[data-theme/"]
},
"overrides": [
{
"files": ["**/variables.css"],
"rules": {
"color-no-hex": null,
"color-named": null,
"function-disallowed-list": null
}
},
{
"files": ["**/themes/dark.css"],
"rules": {
"color-no-hex": null,
"color-named": null,
"function-disallowed-list": null,
"selector-disallowed-list": null
}
}
]
}