chore: configure Biome for linting and formatting
This commit is contained in:
+65
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"$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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user