|
| 1 | +{ |
| 2 | + "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", |
| 3 | + "vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false }, |
| 4 | + "files": { "ignoreUnknown": false, "ignore": [] }, |
| 5 | + "formatter": { "enabled": true, "indentStyle": "tab" }, |
| 6 | + "organizeImports": { "enabled": true }, |
| 7 | + "linter": { |
| 8 | + "enabled": true, |
| 9 | + "rules": { |
| 10 | + "recommended": false, |
| 11 | + "complexity": { |
| 12 | + "noExcessiveCognitiveComplexity": "error", |
| 13 | + "noExtraBooleanCast": "error", |
| 14 | + "noForEach": "error", |
| 15 | + "noMultipleSpacesInRegularExpressionLiterals": "error", |
| 16 | + "noStaticOnlyClass": "error", |
| 17 | + "noUselessCatch": "error", |
| 18 | + "noUselessConstructor": "error", |
| 19 | + "noUselessSwitchCase": "error", |
| 20 | + "noUselessThisAlias": "error", |
| 21 | + "noUselessTypeConstraint": "error", |
| 22 | + "noUselessUndefinedInitialization": "error", |
| 23 | + "noWith": "error", |
| 24 | + "useArrowFunction": "off", |
| 25 | + "useDateNow": "error", |
| 26 | + "useFlatMap": "error", |
| 27 | + "useLiteralKeys": "error", |
| 28 | + "useOptionalChain": "error" |
| 29 | + }, |
| 30 | + "correctness": { |
| 31 | + "noConstAssign": "error", |
| 32 | + "noConstantCondition": "error", |
| 33 | + "noEmptyCharacterClassInRegex": "error", |
| 34 | + "noEmptyPattern": "error", |
| 35 | + "noGlobalObjectCalls": "error", |
| 36 | + "noInvalidBuiltinInstantiation": "error", |
| 37 | + "noInvalidConstructorSuper": "error", |
| 38 | + "noInvalidUseBeforeDeclaration": "error", |
| 39 | + "noNonoctalDecimalEscape": "error", |
| 40 | + "noPrecisionLoss": "error", |
| 41 | + "noSelfAssign": "error", |
| 42 | + "noSetterReturn": "error", |
| 43 | + "noSwitchDeclarations": "error", |
| 44 | + "noUndeclaredVariables": "error", |
| 45 | + "noUnreachable": "error", |
| 46 | + "noUnreachableSuper": "error", |
| 47 | + "noUnsafeFinally": "error", |
| 48 | + "noUnsafeOptionalChaining": "error", |
| 49 | + "noUnusedLabels": "error", |
| 50 | + "noUnusedPrivateClassMembers": "error", |
| 51 | + "noUnusedVariables": "error", |
| 52 | + "useArrayLiterals": "off", |
| 53 | + "useIsNan": "error", |
| 54 | + "useValidForDirection": "error", |
| 55 | + "useYield": "error" |
| 56 | + }, |
| 57 | + "security": { "noGlobalEval": "error" }, |
| 58 | + "style": { |
| 59 | + "noCommaOperator": "error", |
| 60 | + "noInferrableTypes": "error", |
| 61 | + "noNamespace": "error", |
| 62 | + "noNegationElse": "off", |
| 63 | + "noNonNullAssertion": "error", |
| 64 | + "noUselessElse": "error", |
| 65 | + "noVar": "error", |
| 66 | + "noYodaExpression": "error", |
| 67 | + "useAsConstAssertion": "error", |
| 68 | + "useBlockStatements": "off", |
| 69 | + "useConsistentArrayType": "error", |
| 70 | + "useConsistentBuiltinInstantiation": "error", |
| 71 | + "useConst": "error", |
| 72 | + "useExplicitLengthCheck": "error", |
| 73 | + "useFilenamingConvention": { |
| 74 | + "level": "error", |
| 75 | + "options": { "requireAscii": true, "filenameCases": ["kebab-case"] } |
| 76 | + }, |
| 77 | + "useForOf": "error", |
| 78 | + "useImportType": "error", |
| 79 | + "useLiteralEnumMembers": "error", |
| 80 | + "useNamingConvention": { |
| 81 | + "level": "error", |
| 82 | + "options": { |
| 83 | + "strictCase": false, |
| 84 | + "conventions": [ |
| 85 | + { |
| 86 | + "selector": { "kind": "interface" }, |
| 87 | + "match": "(?:I)(.*)", |
| 88 | + "formats": ["PascalCase"] |
| 89 | + }, |
| 90 | + { |
| 91 | + "selector": { "kind": "variable" }, |
| 92 | + "formats": ["camelCase", "CONSTANT_CASE"] |
| 93 | + }, |
| 94 | + { "selector": { "kind": "typeLike" }, "formats": ["PascalCase"] }, |
| 95 | + { |
| 96 | + "selector": { "kind": "classMember", "modifiers": ["private"] }, |
| 97 | + "match": "([^_]*)", |
| 98 | + "formats": ["camelCase"] |
| 99 | + } |
| 100 | + ] |
| 101 | + } |
| 102 | + }, |
| 103 | + "useNodejsImportProtocol": "error", |
| 104 | + "useNumberNamespace": "error", |
| 105 | + "useShorthandFunctionType": "error", |
| 106 | + "useThrowNewError": "error", |
| 107 | + "useThrowOnlyError": "error", |
| 108 | + "useWhile": "error" |
| 109 | + }, |
| 110 | + "suspicious": { |
| 111 | + "noAssignInExpressions": "error", |
| 112 | + "noAsyncPromiseExecutor": "error", |
| 113 | + "noCatchAssign": "error", |
| 114 | + "noClassAssign": "error", |
| 115 | + "noCompareNegZero": "error", |
| 116 | + "noConfusingVoidType": "error", |
| 117 | + "noConsole": { |
| 118 | + "level": "error", |
| 119 | + "options": { |
| 120 | + "allow": [ |
| 121 | + "info", |
| 122 | + "dirxml", |
| 123 | + "warn", |
| 124 | + "error", |
| 125 | + "dir", |
| 126 | + "timeLog", |
| 127 | + "assert", |
| 128 | + "clear", |
| 129 | + "count", |
| 130 | + "countReset", |
| 131 | + "group", |
| 132 | + "groupCollapsed", |
| 133 | + "groupEnd", |
| 134 | + "table", |
| 135 | + "Console", |
| 136 | + "markTimeline", |
| 137 | + "profile", |
| 138 | + "profileEnd", |
| 139 | + "timeline", |
| 140 | + "timelineEnd", |
| 141 | + "timeStamp", |
| 142 | + "context" |
| 143 | + ] |
| 144 | + } |
| 145 | + }, |
| 146 | + "noControlCharactersInRegex": "error", |
| 147 | + "noDebugger": "error", |
| 148 | + "noDoubleEquals": "error", |
| 149 | + "noDuplicateCase": "error", |
| 150 | + "noDuplicateClassMembers": "error", |
| 151 | + "noDuplicateObjectKeys": "error", |
| 152 | + "noDuplicateParameters": "error", |
| 153 | + "noEmptyBlockStatements": "error", |
| 154 | + "noEmptyInterface": "error", |
| 155 | + "noExplicitAny": "error", |
| 156 | + "noExtraNonNullAssertion": "error", |
| 157 | + "noFallthroughSwitchClause": "error", |
| 158 | + "noFunctionAssign": "error", |
| 159 | + "noGlobalAssign": "error", |
| 160 | + "noImportAssign": "error", |
| 161 | + "noMisleadingCharacterClass": "error", |
| 162 | + "noMisleadingInstantiator": "error", |
| 163 | + "noPrototypeBuiltins": "error", |
| 164 | + "noRedeclare": "error", |
| 165 | + "noShadowRestrictedNames": "error", |
| 166 | + "noSparseArray": "error", |
| 167 | + "noThenProperty": "error", |
| 168 | + "noUnsafeDeclarationMerging": "error", |
| 169 | + "noUnsafeNegation": "error", |
| 170 | + "useAwait": "error", |
| 171 | + "useErrorMessage": "error", |
| 172 | + "useGetterReturn": "error", |
| 173 | + "useNamespaceKeyword": "error", |
| 174 | + "useNumberToFixedDigitsArgument": "error", |
| 175 | + "useValidTypeof": "error" |
| 176 | + } |
| 177 | + } |
| 178 | + }, |
| 179 | + "javascript": { |
| 180 | + "formatter": { "quoteStyle": "double" }, |
| 181 | + "globals": ["exports"] |
| 182 | + }, |
| 183 | + "overrides": [ |
| 184 | + { |
| 185 | + "include": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"], |
| 186 | + "linter": { |
| 187 | + "rules": { |
| 188 | + "complexity": { "noWith": "off" }, |
| 189 | + "correctness": { |
| 190 | + "noConstAssign": "off", |
| 191 | + "noGlobalObjectCalls": "off", |
| 192 | + "noInvalidBuiltinInstantiation": "off", |
| 193 | + "noInvalidConstructorSuper": "off", |
| 194 | + "noNewSymbol": "off", |
| 195 | + "noSetterReturn": "off", |
| 196 | + "noUndeclaredVariables": "off", |
| 197 | + "noUnreachable": "off", |
| 198 | + "noUnreachableSuper": "off" |
| 199 | + }, |
| 200 | + "style": { |
| 201 | + "noArguments": "error", |
| 202 | + "noVar": "error", |
| 203 | + "useConst": "error" |
| 204 | + }, |
| 205 | + "suspicious": { |
| 206 | + "noClassAssign": "off", |
| 207 | + "noDuplicateClassMembers": "off", |
| 208 | + "noDuplicateObjectKeys": "off", |
| 209 | + "noDuplicateParameters": "off", |
| 210 | + "noFunctionAssign": "off", |
| 211 | + "noImportAssign": "off", |
| 212 | + "noRedeclare": "off", |
| 213 | + "noUnsafeNegation": "off", |
| 214 | + "useGetterReturn": "off" |
| 215 | + } |
| 216 | + } |
| 217 | + } |
| 218 | + }, |
| 219 | + { |
| 220 | + "include": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"], |
| 221 | + "linter": { |
| 222 | + "rules": { |
| 223 | + "complexity": { "noWith": "off" }, |
| 224 | + "correctness": { |
| 225 | + "noConstAssign": "off", |
| 226 | + "noGlobalObjectCalls": "off", |
| 227 | + "noInvalidBuiltinInstantiation": "off", |
| 228 | + "noInvalidConstructorSuper": "off", |
| 229 | + "noNewSymbol": "off", |
| 230 | + "noSetterReturn": "off", |
| 231 | + "noUndeclaredVariables": "off", |
| 232 | + "noUnreachable": "off", |
| 233 | + "noUnreachableSuper": "off" |
| 234 | + }, |
| 235 | + "style": { |
| 236 | + "noArguments": "error", |
| 237 | + "noVar": "error", |
| 238 | + "useConst": "error" |
| 239 | + }, |
| 240 | + "suspicious": { |
| 241 | + "noClassAssign": "off", |
| 242 | + "noDuplicateClassMembers": "off", |
| 243 | + "noDuplicateObjectKeys": "off", |
| 244 | + "noDuplicateParameters": "off", |
| 245 | + "noFunctionAssign": "off", |
| 246 | + "noImportAssign": "off", |
| 247 | + "noRedeclare": "off", |
| 248 | + "noUnsafeNegation": "off", |
| 249 | + "useGetterReturn": "off" |
| 250 | + } |
| 251 | + } |
| 252 | + } |
| 253 | + }, |
| 254 | + { |
| 255 | + "include": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"], |
| 256 | + "linter": { |
| 257 | + "rules": { |
| 258 | + "complexity": { "noWith": "off" }, |
| 259 | + "correctness": { |
| 260 | + "noConstAssign": "off", |
| 261 | + "noGlobalObjectCalls": "off", |
| 262 | + "noInvalidBuiltinInstantiation": "off", |
| 263 | + "noInvalidConstructorSuper": "off", |
| 264 | + "noNewSymbol": "off", |
| 265 | + "noSetterReturn": "off", |
| 266 | + "noUndeclaredVariables": "off", |
| 267 | + "noUnreachable": "off", |
| 268 | + "noUnreachableSuper": "off" |
| 269 | + }, |
| 270 | + "style": { |
| 271 | + "noArguments": "error", |
| 272 | + "noVar": "error", |
| 273 | + "useConst": "error" |
| 274 | + }, |
| 275 | + "suspicious": { |
| 276 | + "noClassAssign": "off", |
| 277 | + "noDuplicateClassMembers": "off", |
| 278 | + "noDuplicateObjectKeys": "off", |
| 279 | + "noDuplicateParameters": "off", |
| 280 | + "noFunctionAssign": "off", |
| 281 | + "noImportAssign": "off", |
| 282 | + "noRedeclare": "off", |
| 283 | + "noUnsafeNegation": "off", |
| 284 | + "useGetterReturn": "off" |
| 285 | + } |
| 286 | + } |
| 287 | + } |
| 288 | + }, |
| 289 | + { |
| 290 | + "include": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"], |
| 291 | + "linter": { |
| 292 | + "rules": { |
| 293 | + "complexity": { "noWith": "off" }, |
| 294 | + "correctness": { |
| 295 | + "noConstAssign": "off", |
| 296 | + "noGlobalObjectCalls": "off", |
| 297 | + "noInvalidBuiltinInstantiation": "off", |
| 298 | + "noInvalidConstructorSuper": "off", |
| 299 | + "noNewSymbol": "off", |
| 300 | + "noSetterReturn": "off", |
| 301 | + "noUndeclaredVariables": "off", |
| 302 | + "noUnreachable": "off", |
| 303 | + "noUnreachableSuper": "off" |
| 304 | + }, |
| 305 | + "style": { |
| 306 | + "noArguments": "error", |
| 307 | + "noVar": "error", |
| 308 | + "useConst": "error" |
| 309 | + }, |
| 310 | + "suspicious": { |
| 311 | + "noClassAssign": "off", |
| 312 | + "noDuplicateClassMembers": "off", |
| 313 | + "noDuplicateObjectKeys": "off", |
| 314 | + "noDuplicateParameters": "off", |
| 315 | + "noFunctionAssign": "off", |
| 316 | + "noImportAssign": "off", |
| 317 | + "noRedeclare": "off", |
| 318 | + "noUnsafeNegation": "off", |
| 319 | + "useGetterReturn": "off" |
| 320 | + } |
| 321 | + } |
| 322 | + } |
| 323 | + } |
| 324 | + ] |
| 325 | +} |
0 commit comments