2025-08-28 03:54:22 +08:00
|
|
|
{
|
2025-09-06 01:29:29 +08:00
|
|
|
"$schema": "https://biomejs.dev/schemas/2.2.3/schema.json",
|
|
|
|
"files": {
|
|
|
|
"ignoreUnknown": false,
|
|
|
|
"includes": [
|
|
|
|
"src/**/*",
|
|
|
|
".vscode/**/*",
|
|
|
|
"index.html",
|
|
|
|
"vite.config.ts",
|
|
|
|
"vitest.config.ts",
|
|
|
|
"vitest.setup.ts",
|
|
|
|
"!**/node_modules",
|
|
|
|
"!**/dist",
|
|
|
|
"!**/build",
|
|
|
|
"!**/coverage"
|
|
|
|
]
|
|
|
|
},
|
2025-08-28 13:59:47 +08:00
|
|
|
"linter": {
|
2025-09-06 01:29:29 +08:00
|
|
|
"enabled": true,
|
2025-08-28 13:59:47 +08:00
|
|
|
"rules": {
|
2025-09-06 01:29:29 +08:00
|
|
|
"recommended": true,
|
|
|
|
"correctness": {
|
|
|
|
"noUnusedVariables": "off",
|
|
|
|
"useExhaustiveDependencies": "off"
|
|
|
|
},
|
|
|
|
"style": {
|
|
|
|
"noNonNullAssertion": "error",
|
|
|
|
"useImportType": "warn",
|
|
|
|
"useNodejsImportProtocol": "error",
|
|
|
|
"useConsistentArrayType": "error",
|
|
|
|
"noUnusedTemplateLiteral": "off"
|
|
|
|
},
|
2025-08-28 13:59:47 +08:00
|
|
|
"suspicious": {
|
2025-09-06 01:29:29 +08:00
|
|
|
"noExplicitAny": "error",
|
2025-08-28 13:59:47 +08:00
|
|
|
"noConsole": "off"
|
2025-08-29 02:00:20 +08:00
|
|
|
},
|
2025-09-06 01:29:29 +08:00
|
|
|
"complexity": {
|
|
|
|
"noExcessiveCognitiveComplexity": "off",
|
|
|
|
"noForEach": "off"
|
|
|
|
},
|
|
|
|
"performance": {
|
|
|
|
"noDelete": "error"
|
2025-08-28 13:59:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2025-09-06 01:29:29 +08:00
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"includes": ["**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"],
|
|
|
|
"linter": {
|
|
|
|
"rules": {
|
|
|
|
"suspicious": {
|
|
|
|
"noExplicitAny": "off"
|
|
|
|
},
|
|
|
|
"style": {
|
|
|
|
"noNonNullAssertion": "off"
|
|
|
|
},
|
|
|
|
"correctness": {
|
|
|
|
"noUnusedFunctionParameters": "off",
|
|
|
|
"noUnusedVariables": "off"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"formatter": {
|
|
|
|
"enabled": true,
|
|
|
|
"formatWithErrors": false,
|
|
|
|
"indentStyle": "space",
|
|
|
|
"indentWidth": 2,
|
|
|
|
"lineWidth": 100,
|
|
|
|
"lineEnding": "lf"
|
|
|
|
},
|
|
|
|
"javascript": {
|
|
|
|
"formatter": {
|
|
|
|
"quoteStyle": "single",
|
|
|
|
"jsxQuoteStyle": "double",
|
|
|
|
"trailingCommas": "es5",
|
|
|
|
"semicolons": "always",
|
|
|
|
"arrowParentheses": "always"
|
|
|
|
}
|
2025-08-28 03:54:22 +08:00
|
|
|
}
|
2025-08-28 13:59:47 +08:00
|
|
|
}
|