buster/apps/web/biome.json

108 lines
2.5 KiB
JSON
Raw Normal View History

2025-08-12 11:28:36 +08:00
{
2025-09-11 04:19:41 +08:00
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
2025-08-12 11:28:36 +08:00
"files": {
"ignoreUnknown": false,
"includes": [
"src/**/*",
".vscode/**/*",
"index.html",
"vite.config.ts",
"vitest.config.ts",
"vitest.setup.ts",
"!src/routeTree.gen.ts",
2025-08-16 03:27:33 +08:00
"!**/node_modules",
"!**/dist",
"!**/build",
"!**/coverage",
"!**/.next",
2025-08-13 12:37:41 +08:00
"!**/*.css"
2025-08-12 11:28:36 +08:00
]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
2025-08-13 03:21:24 +08:00
"noUnusedVariables": "off",
2025-08-12 11:28:36 +08:00
"noUnusedImports": "off",
2025-08-13 12:37:41 +08:00
"useExhaustiveDependencies": "off",
2025-08-16 03:27:33 +08:00
"noChildrenProp": "off",
2025-08-21 23:51:38 +08:00
"useUniqueElementIds": "off",
"useParseIntRadix": "off"
2025-08-12 11:28:36 +08:00
},
"style": {
"noNonNullAssertion": "error",
"useImportType": "warn",
"useNodejsImportProtocol": "error",
"useConsistentArrayType": "error",
"noUnusedTemplateLiteral": "off"
},
"suspicious": {
"noExplicitAny": "error",
2025-08-13 03:21:24 +08:00
"noConsole": "off",
2025-08-13 13:27:34 +08:00
"noArrayIndexKey": "off",
"noTemplateCurlyInString": "off"
2025-08-12 11:28:36 +08:00
},
"complexity": {
"noExcessiveCognitiveComplexity": "off",
"noForEach": "off"
},
2025-08-14 06:08:21 +08:00
"nursery": {
"useSortedClasses": "off"
},
2025-08-12 11:28:36 +08:00
"performance": {
"noDelete": "error"
2025-08-13 03:21:24 +08:00
},
"a11y": {
"noSvgWithoutTitle": "off",
"useKeyWithClickEvents": "off",
2025-09-02 13:00:17 +08:00
"noStaticElementInteractions": "off",
"useMediaCaption": "off",
"useHeadingContent": "off"
2025-08-12 11:28:36 +08:00
}
}
},
2025-08-13 12:37:41 +08:00
"overrides": [
{
2025-08-13 12:42:35 +08:00
"includes": ["**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"],
2025-08-13 12:37:41 +08:00
"linter": {
"rules": {
"suspicious": {
"noExplicitAny": "off"
2025-08-19 00:45:44 +08:00
},
"style": {
"noNonNullAssertion": "off"
},
"correctness": {
"noUnusedFunctionParameters": "off",
"noUnusedVariables": "off"
2025-08-13 12:37:41 +08:00
}
}
}
2025-08-13 13:27:34 +08:00
},
{
"includes": ["**/*.stories.tsx"],
"linter": {
"enabled": false
}
2025-08-13 12:37:41 +08:00
}
],
2025-08-12 11:28:36 +08:00
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100,
"lineEnding": "lf"
2025-08-13 03:21:24 +08:00
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"jsxQuoteStyle": "double",
"trailingCommas": "es5",
"semicolons": "always",
"arrowParentheses": "always"
}
2025-08-12 11:28:36 +08:00
}
}