mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
Mechanical fixes across 13 files: - isNaN() → Number.isNaN() (all values already numeric from parseFloat/parseInt) - let → const where never reassigned - Math.pow() → ** operator - Unnecessary continue in for loop - Useless string escape in test description - Missing parseInt radix parameter - Remove unused private class member (write-only counter) - Prefix unused function parameter with _ Config: suppress noImportantStyles (CSS !important is intentional) and useLiteralKeys (bracket notation used for computed/dynamic keys) in biome.json. Remaining 49 warnings are all noExcessiveCognitiveComplexity (already configured as warn, safe to address incrementally).
93 lines
2.0 KiB
JSON
93 lines
2.0 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.4.7/schema.json",
|
|
"vcs": {
|
|
"enabled": true,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": true
|
|
},
|
|
"files": {
|
|
"ignoreUnknown": true
|
|
},
|
|
"formatter": {
|
|
"enabled": false
|
|
},
|
|
"overrides": [
|
|
{
|
|
"includes": ["src/generated/**"],
|
|
"linter": { "enabled": false }
|
|
}
|
|
],
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"correctness": {
|
|
"noUnusedVariables": "off",
|
|
"noUnusedImports": "off",
|
|
"noUndeclaredVariables": "off"
|
|
},
|
|
"suspicious": {
|
|
"noExplicitAny": "off",
|
|
"noAssignInExpressions": "off",
|
|
"noDoubleEquals": "warn",
|
|
"noConsole": "off",
|
|
"noFallthroughSwitchClause": "error",
|
|
"noGlobalAssign": "error",
|
|
"noRedeclare": "error",
|
|
"noVar": "error",
|
|
"noControlCharactersInRegex": "off",
|
|
"noTemplateCurlyInString": "off",
|
|
"noEmptyBlock": "off",
|
|
"noImplicitAnyLet": "off",
|
|
"useIterableCallbackReturn": "off",
|
|
"noDocumentCookie": "off",
|
|
"noDuplicateProperties": "off",
|
|
"noPrototypeBuiltins": "off",
|
|
"noConfusingVoidType": "off"
|
|
},
|
|
"style": {
|
|
"noNonNullAssertion": "off",
|
|
"useConst": "warn",
|
|
"useTemplate": "off",
|
|
"useDefaultParameterLast": "warn",
|
|
"noParameterAssign": "off",
|
|
"useNodejsImportProtocol": "off",
|
|
"noUnusedTemplateLiteral": "off",
|
|
"useImportType": "off",
|
|
"useArrayLiterals": "warn",
|
|
"noDescendingSpecificity": "off"
|
|
},
|
|
"complexity": {
|
|
"noForEach": "off",
|
|
"noImportantStyles": "off",
|
|
"useLiteralKeys": "off",
|
|
"useFlatMap": "warn",
|
|
"noUselessSwitchCase": "warn",
|
|
"noUselessConstructor": "warn",
|
|
"noStaticOnlyClass": "off",
|
|
"noArguments": "error",
|
|
"noBannedTypes": "off",
|
|
"noExcessiveCognitiveComplexity": {
|
|
"level": "warn",
|
|
"options": {
|
|
"maxAllowedComplexity": 50
|
|
}
|
|
}
|
|
},
|
|
"performance": {
|
|
"noDelete": "off",
|
|
"noAccumulatingSpread": "warn"
|
|
},
|
|
"security": {
|
|
"noDangerouslySetInnerHtml": "off"
|
|
}
|
|
}
|
|
},
|
|
"javascript": {
|
|
"globals": ["globalThis"]
|
|
},
|
|
"assist": {
|
|
"enabled": false
|
|
}
|
|
}
|