Files
worldmonitor/biome.json
Elie Habib 467608c2d7 chore: clear baseline lint debt (173 warnings → 49) (#1712)
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).
2026-03-16 08:48:00 +04:00

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
}
}