tool: biome for formatting

This commit is contained in:
2026-02-04 19:25:47 -08:00
parent 2db7bd286b
commit 3c00e74692
3 changed files with 60 additions and 1 deletions

38
biome.jsonc Normal file
View File

@@ -0,0 +1,38 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.14/schema.json",
"files": {
"includes": [
"*.js",
"*.ts",
"*.json",
"*.jsonc",
"src/**/*.ts",
"src/**/*.svelte",
"!src/lib/components/ui/**/*",
"!src/worker-configuration.d.ts"
]
},
// https://biomejs.dev/internals/language-support/#linting-html-ish-languages
"overrides": [
{
"includes": ["**/*.svelte", "**/*.astro", "**/*.vue"],
"html": {
"formatter": {
"indentScriptAndStyle": true
}
},
"linter": {
"rules": {
"style": {
"useConst": "off",
"useImportType": "off"
},
"correctness": {
"noUnusedVariables": "off",
"noUnusedImports": "off"
}
}
}
}
]
}