Trois règles style ajoutées à biome.json : - noNonNullAssertion (warn) : déconseille `valeur!` - useConsistentArrayType (syntax: shorthand) : impose T[] (déjà la norme partout dans le repo, aucune réécriture nécessaire) - useConsistentTypeDefinitions (style: interface) : impose `interface` pour tout type objet 0 violation sur les 200 fichiers du repo — déjà conforme. Documenté dans specs/dev-conventions.md (tableau des règles Biome actives). Corrige aussi la config du poste : node_modules pointait encore vers Biome 1.9.4 alors que package.json déclare ^2.5.9 depuis le merge de la #59 (ce checkout n'avait jamais été réinstallé depuis) — pnpm install corrige, aucun changement de lockfile. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
64 lines
1.4 KiB
JSON
64 lines
1.4 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.5.9/schema.json",
|
|
"vcs": {
|
|
"enabled": true,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": true
|
|
},
|
|
"files": {
|
|
"ignoreUnknown": false,
|
|
"includes": [
|
|
"**",
|
|
"!**/dist",
|
|
"!**/coverage",
|
|
"!**/node_modules",
|
|
"!**/.pnpm-store",
|
|
"!**/cypress/videos",
|
|
"!**/cypress/screenshots"
|
|
]
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "space",
|
|
"indentWidth": 2,
|
|
"lineWidth": 100
|
|
},
|
|
"assist": { "actions": { "source": { "organizeImports": "on" } } },
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"preset": "recommended",
|
|
"complexity": {
|
|
"noUselessCatch": "off"
|
|
},
|
|
"nursery": {
|
|
"noFloatingPromises": "error"
|
|
},
|
|
"style": {
|
|
"noNonNullAssertion": "warn",
|
|
"useConsistentArrayType": {
|
|
"level": "error",
|
|
"options": { "syntax": "shorthand" }
|
|
},
|
|
"useConsistentTypeDefinitions": {
|
|
"level": "error",
|
|
"options": { "style": "interface" }
|
|
}
|
|
},
|
|
"suspicious": {
|
|
"noConsole": {
|
|
"level": "error",
|
|
"options": { "allow": ["error", "warn", "info", "debug", "table", "assert"] }
|
|
},
|
|
"noExplicitAny": "error"
|
|
}
|
|
}
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "double",
|
|
"semicolons": "always",
|
|
"trailingCommas": "all"
|
|
}
|
|
}
|
|
}
|