adjust biome configuration for improved linting and file inclusion

add specific file exclusions in `biome.json` to refine file tracking and adapt linting script in `package.json` to automatically write changes.
This commit is contained in:
dswbx
2025-11-11 16:42:19 +01:00
parent ff56d616d9
commit 079d613b2e
2 changed files with 3 additions and 2 deletions

View File

@@ -32,6 +32,7 @@
"files": { "files": {
"includes": [ "includes": [
"**", "**",
"!!**/.tsup",
"!!**/node_modules", "!!**/node_modules",
"!!**/.cache", "!!**/.cache",
"!!**/.wrangler", "!!**/.wrangler",
@@ -45,7 +46,7 @@
}, },
"linter": { "linter": {
"enabled": true, "enabled": true,
"includes": ["**"], "includes": ["**", "!!**/vitest.config.ts", "!!app/build.ts"],
"rules": { "rules": {
"recommended": true, "recommended": true,
"a11y": {}, "a11y": {},

View File

@@ -12,7 +12,7 @@
"ci": "find . -name 'node_modules' -type d -exec rm -rf {} + && bun install", "ci": "find . -name 'node_modules' -type d -exec rm -rf {} + && bun install",
"npm:local": "verdaccio --config verdaccio.yml", "npm:local": "verdaccio --config verdaccio.yml",
"format": "bunx biome format --write ./app", "format": "bunx biome format --write ./app",
"lint": "bunx biome lint --changed ./app" "lint": "bunx biome lint --changed --write ./app"
}, },
"dependencies": {}, "dependencies": {},
"devDependencies": { "devDependencies": {