82d8bec91b
- Enforce no nested ternary expressions via biome linter - No existing code violations found - Complements clarity-over-brevity coding guideline
56 lines
1.3 KiB
JSON
56 lines
1.3 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.3.12/schema.json",
|
|
"assist": { "actions": { "source": { "organizeImports": "on" } } },
|
|
"files": {
|
|
"includes": ["backend/src/**/*.ts", "frontend/src/**/*.ts", "frontend/src/**/*.tsx", "frontend/src/**/*.css", "frontend/e2e/**/*.ts", "frontend/playwright.config.ts"]
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"complexity": {
|
|
"noForEach": "off"
|
|
},
|
|
"suspicious": {
|
|
"noExplicitAny": "warn",
|
|
"useIterableCallbackReturn": "off",
|
|
"noImplicitAnyLet": "warn",
|
|
"noArrayIndexKey": "warn",
|
|
"noAssignInExpressions": "off"
|
|
},
|
|
"style": {
|
|
"noNonNullAssertion": "off",
|
|
"useConst": "error",
|
|
"noParameterAssign": "off",
|
|
"noNestedTernary": "warn"
|
|
},
|
|
"correctness": {
|
|
"noUnusedVariables": "warn",
|
|
"noUnusedImports": "warn",
|
|
"noUnusedFunctionParameters": "warn",
|
|
"useExhaustiveDependencies": "warn"
|
|
},
|
|
"a11y": {
|
|
"useKeyWithClickEvents": "warn",
|
|
"noSvgWithoutTitle": "off",
|
|
"noStaticElementInteractions": "off",
|
|
"useButtonType": "off",
|
|
"noLabelWithoutControl": "warn"
|
|
}
|
|
}
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "tab",
|
|
"indentWidth": 2,
|
|
"lineWidth": 120
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "double",
|
|
"semicolons": "always",
|
|
"trailingCommas": "es5"
|
|
}
|
|
}
|
|
}
|