aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-05-29 23:43:59 +0000
committerFuwn <[email protected]>2026-05-29 23:43:59 +0000
commitaa0605750d4240f9fe37ebf0c9b9f3431d2dc2de (patch)
treef0e49fb2bf6de0c5af95f4464200e5b328f95c0c
parentfeat(analytics): track umami events across core actions (diff)
downloaddue.moe-aa0605750d4240f9fe37ebf0c9b9f3431d2dc2de.tar.xz
due.moe-aa0605750d4240f9fe37ebf0c9b9f3431d2dc2de.zip
chore(biome): scope linting to remove Svelte false positives
- Disable noUnusedImports/noUnusedVariables for *.svelte: biome parses only the <script> block, not templates or $store auto-subscriptions, so these fired as ~744 false positives. svelte-check + tsconfig noUnusedLocals/ noUnusedParameters still catch genuinely-unused code. - Disable noImportantStyles for stylesheets: !important is deliberate here, including the prefers-reduced-motion a11y reset, which requires it. - Exclude static/styles (vendored LaTeX.css + risotto theme) from biome.
-rw-r--r--biome.json27
1 files changed, 25 insertions, 2 deletions
diff --git a/biome.json b/biome.json
index 5f8a7043..dfd9deac 100644
--- a/biome.json
+++ b/biome.json
@@ -6,7 +6,8 @@
"useIgnoreFile": true
},
"files": {
- "ignoreUnknown": true
+ "ignoreUnknown": true,
+ "includes": ["**", "!static/styles"]
},
"formatter": {
"enabled": true
@@ -17,5 +18,27 @@
"recommended": true
}
},
- "overrides": []
+ "overrides": [
+ {
+ "includes": ["**/*.svelte"],
+ "linter": {
+ "rules": {
+ "correctness": {
+ "noUnusedImports": "off",
+ "noUnusedVariables": "off"
+ }
+ }
+ }
+ },
+ {
+ "includes": ["**/*.css", "**/*.scss", "**/*.svelte"],
+ "linter": {
+ "rules": {
+ "complexity": {
+ "noImportantStyles": "off"
+ }
+ }
+ }
+ }
+ ]
}