mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
83 lines
1.6 KiB
JSON
83 lines
1.6 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.4.13/schema.json",
|
|
"files": {
|
|
"maxSize": 1000000,
|
|
"ignoreUnknown": true,
|
|
"includes": ["src/**", "tests/**", "scripts/**"]
|
|
},
|
|
"formatter": {
|
|
"indentStyle": "space",
|
|
"indentWidth": 2,
|
|
"lineWidth": 120
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"correctness": {
|
|
"noUnusedVariables": "off",
|
|
"noUnusedImports": "off",
|
|
"noUnusedFunctionParameters": "off"
|
|
},
|
|
"suspicious": {
|
|
"noEmptyBlockStatements": "warn",
|
|
"noExplicitAny": "off",
|
|
"noImplicitAnyLet": "off",
|
|
"useIterableCallbackReturn": "off"
|
|
},
|
|
"a11y": {
|
|
"useGenericFontNames": "off"
|
|
},
|
|
"complexity": {
|
|
"useOptionalChain": "off"
|
|
},
|
|
"style": {
|
|
"noNonNullAssertion": "off"
|
|
}
|
|
}
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "double"
|
|
}
|
|
},
|
|
"json": {
|
|
"formatter": {
|
|
"indentStyle": "space",
|
|
"indentWidth": 2
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"includes": ["src/**/*.vue"],
|
|
"linter": {
|
|
"rules": {
|
|
"correctness": {
|
|
"noUnusedVariables": "off"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"includes": ["src/**/*.ts"],
|
|
"linter": {
|
|
"rules": {
|
|
"correctness": {
|
|
"noUnusedVariables": "off"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"includes": ["scripts/**"],
|
|
"linter": {
|
|
"rules": {
|
|
"correctness": {
|
|
"noUnusedVariables": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|