diff options
| author | Fuwn <[email protected]> | 2026-05-29 23:43:59 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-05-29 23:43:59 +0000 |
| commit | aa0605750d4240f9fe37ebf0c9b9f3431d2dc2de (patch) | |
| tree | f0e49fb2bf6de0c5af95f4464200e5b328f95c0c /biome.json | |
| parent | feat(analytics): track umami events across core actions (diff) | |
| download | due.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.
Diffstat (limited to 'biome.json')
| -rw-r--r-- | biome.json | 27 |
1 files changed, 25 insertions, 2 deletions
@@ -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" + } + } + } + } + ] } |