fix(tooling): biome.json fuer Biome 2.5.0 migrieren, lint-Skript in apps/api
- organizeImports auf oberster Ebene entfernt, assist.actions.source.organizeImports: "on" ergaenzt - linter.rules.recommended durch linter.rules.preset: "recommended" ersetzt - javascript.parser.unsafeParameterDecoratorsEnabled aktiviert (238 parse-Fehler in 19 Dateien behoben) - javascript.formatter.quoteStyle auf "single" gesetzt (1496 einfach-, 0 doppelt-gequotete Importzeilen) - vcs.useIgnoreFile aktiviert, files.includes schliesst __fixtures__ und globals.css aus - a11y/correctness.useExhaustiveDependencies/ausgewaehlte suspicious-Regeln auf warn, security bleibt error - apps/api/package.json: lint-Skript biome lint . Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TPPB4ApQxzSU1rwV2Ffj9J
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
"start": "node dist/main.js",
|
"start": "node dist/main.js",
|
||||||
"start:dev": "nest start --watch",
|
"start:dev": "nest start --watch",
|
||||||
"type-check": "tsc --noEmit",
|
"type-check": "tsc --noEmit",
|
||||||
|
"lint": "biome lint .",
|
||||||
"test": "vitest run",
|
"test": "vitest run",
|
||||||
"test:watch": "vitest",
|
"test:watch": "vitest",
|
||||||
"postinstall": "test -f prisma/schema.prisma && prisma generate || true"
|
"postinstall": "test -f prisma/schema.prisma && prisma generate || true"
|
||||||
|
|||||||
+38
-3
@@ -1,7 +1,16 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://biomejs.dev/schemas/2.5.0/schema.json",
|
"$schema": "https://biomejs.dev/schemas/2.5.0/schema.json",
|
||||||
"organizeImports": {
|
"vcs": {
|
||||||
"enabled": true
|
"enabled": true,
|
||||||
|
"clientKind": "git",
|
||||||
|
"useIgnoreFile": true
|
||||||
|
},
|
||||||
|
"files": {
|
||||||
|
"includes": [
|
||||||
|
"**",
|
||||||
|
"!**/__fixtures__/**",
|
||||||
|
"!apps/web/src/app/globals.css"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"formatter": {
|
"formatter": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
@@ -9,10 +18,36 @@
|
|||||||
"indentWidth": 2,
|
"indentWidth": 2,
|
||||||
"lineWidth": 100
|
"lineWidth": 100
|
||||||
},
|
},
|
||||||
|
"assist": {
|
||||||
|
"actions": {
|
||||||
|
"source": {
|
||||||
|
"organizeImports": "on"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"linter": {
|
"linter": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"rules": {
|
"rules": {
|
||||||
"recommended": true
|
"preset": "recommended",
|
||||||
|
"a11y": "warn",
|
||||||
|
"correctness": {
|
||||||
|
"useExhaustiveDependencies": "warn"
|
||||||
|
},
|
||||||
|
"suspicious": {
|
||||||
|
"noArrayIndexKey": "warn",
|
||||||
|
"noAssignInExpressions": "warn",
|
||||||
|
"noControlCharactersInRegex": "warn",
|
||||||
|
"noDoubleEquals": "warn",
|
||||||
|
"useIterableCallbackReturn": "warn"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"javascript": {
|
||||||
|
"parser": {
|
||||||
|
"unsafeParameterDecoratorsEnabled": true
|
||||||
|
},
|
||||||
|
"formatter": {
|
||||||
|
"quoteStyle": "single"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user