89d565bc9d
* chore: fix lint errors and reduce warnings across codebase - Fix noExplicitAny catches in backend routes and plugins - Fix noNestedTernary issues in backend services - Add keyboard event handlers for useKeyWithClickEvents in frontend - Disable noImportantStyles rule in biome.json - Fix formatting errors across all changed files - Fix test file lint issues Closes #233 * fix: restore any types in test files for TS compatibility * fix: revert Auth.tsx dependency array changes that caused infinite re-render * fix: null-safe user.username access in AppContext dependency array
64 lines
1.4 KiB
JSON
64 lines
1.4 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",
|
|
"noImportantStyles": "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"
|
|
}
|
|
}
|
|
}
|