78 lines
1.6 KiB
JSON
78 lines
1.6 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.4.15/schema.json",
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"complexity": {
|
|
"noExcessiveCognitiveComplexity": {
|
|
"level": "error",
|
|
"options": {
|
|
"maxAllowedComplexity": 15
|
|
}
|
|
},
|
|
"noForEach": "warn",
|
|
"noUselessFragments": "error",
|
|
"noUselessTypeConstraint": "error",
|
|
"useLiteralKeys": "error",
|
|
"useSimpleNumberKeys": "error",
|
|
"noStaticOnlyClass": "error",
|
|
"noUselessEmptyExport": "error",
|
|
"noUselessThisAlias": "error"
|
|
},
|
|
"correctness": {
|
|
"noUnusedVariables": "error",
|
|
"noUndeclaredVariables": "error",
|
|
"noUnusedImports": "error",
|
|
"useExhaustiveDependencies": "warn"
|
|
},
|
|
"suspicious": {
|
|
"noExplicitAny": "warn",
|
|
"noDoubleEquals": "error",
|
|
"noShadowRestrictedNames": "error",
|
|
"noArrayIndexKey": "error",
|
|
"noAsyncPromiseExecutor": "error",
|
|
"noDebugger": "error"
|
|
},
|
|
"style": {
|
|
"noNonNullAssertion": "warn",
|
|
"useConst": "error",
|
|
"useDefaultParameterLast": "error",
|
|
"useExportType": "error",
|
|
"useFilenamingConvention": {
|
|
"level": "error",
|
|
"options": {
|
|
"strictCase": false,
|
|
"filenameCases": ["camelCase", "PascalCase"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "tab",
|
|
"lineWidth": 100
|
|
},
|
|
"assist": {
|
|
"enabled": true,
|
|
"actions": {
|
|
"source": {
|
|
"organizeImports": "on"
|
|
}
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"includes": ["tests/**/*"],
|
|
"linter": {
|
|
"rules": {
|
|
"suspicious": {
|
|
"noExplicitAny": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|