|
| 1 | +{ |
| 2 | + "$schema": "https://biomejs.dev/schemas/1.8.0/schema.json", |
| 3 | + "organizeImports": { |
| 4 | + "enabled": false |
| 5 | + }, |
| 6 | + "vcs": { |
| 7 | + "enabled": true, |
| 8 | + "clientKind": "git", |
| 9 | + "useIgnoreFile": true |
| 10 | + }, |
| 11 | + "formatter": { |
| 12 | + "enabled": true, |
| 13 | + "formatWithErrors": false, |
| 14 | + "indentStyle": "space", |
| 15 | + "indentWidth": 2, |
| 16 | + "lineEnding": "lf", |
| 17 | + "lineWidth": 80, |
| 18 | + "attributePosition": "auto" |
| 19 | + }, |
| 20 | + "linter": { |
| 21 | + "enabled": true, |
| 22 | + "rules": { |
| 23 | + "recommended": false, |
| 24 | + "complexity": { |
| 25 | + "noBannedTypes": "error", |
| 26 | + "noExtraBooleanCast": "error", |
| 27 | + "noMultipleSpacesInRegularExpressionLiterals": "error", |
| 28 | + "noUselessCatch": "error", |
| 29 | + "noUselessTypeConstraint": "error", |
| 30 | + "noWith": "error" |
| 31 | + }, |
| 32 | + "correctness": { |
| 33 | + "noConstAssign": "error", |
| 34 | + "noConstantCondition": "error", |
| 35 | + "noEmptyCharacterClassInRegex": "error", |
| 36 | + "noEmptyPattern": "error", |
| 37 | + "noGlobalObjectCalls": "error", |
| 38 | + "noInnerDeclarations": "error", |
| 39 | + "noInvalidConstructorSuper": "error", |
| 40 | + "noNewSymbol": "error", |
| 41 | + "noNonoctalDecimalEscape": "error", |
| 42 | + "noPrecisionLoss": "error", |
| 43 | + "noSelfAssign": "error", |
| 44 | + "noSetterReturn": "error", |
| 45 | + "noSwitchDeclarations": "error", |
| 46 | + "noUndeclaredVariables": "error", |
| 47 | + "noUnreachable": "error", |
| 48 | + "noUnreachableSuper": "error", |
| 49 | + "noUnsafeFinally": "error", |
| 50 | + "noUnsafeOptionalChaining": "error", |
| 51 | + "noUnusedLabels": "error", |
| 52 | + "noUnusedVariables": "error", |
| 53 | + "useArrayLiterals": "off", |
| 54 | + "useIsNan": "error", |
| 55 | + "useValidForDirection": "error", |
| 56 | + "useYield": "error" |
| 57 | + }, |
| 58 | + "style": { |
| 59 | + "noNamespace": "error", |
| 60 | + "noNonNullAssertion": "off", |
| 61 | + "useAsConstAssertion": "error", |
| 62 | + "useBlockStatements": "off" |
| 63 | + }, |
| 64 | + "suspicious": { |
| 65 | + "noAsyncPromiseExecutor": "error", |
| 66 | + "noCatchAssign": "error", |
| 67 | + "noClassAssign": "error", |
| 68 | + "noCompareNegZero": "error", |
| 69 | + "noControlCharactersInRegex": "error", |
| 70 | + "noDebugger": "error", |
| 71 | + "noDuplicateCase": "error", |
| 72 | + "noDuplicateClassMembers": "error", |
| 73 | + "noDuplicateObjectKeys": "error", |
| 74 | + "noDuplicateParameters": "error", |
| 75 | + "noEmptyBlockStatements": "off", |
| 76 | + "noExplicitAny": "off", |
| 77 | + "noExtraNonNullAssertion": "error", |
| 78 | + "noFallthroughSwitchClause": "error", |
| 79 | + "noFunctionAssign": "error", |
| 80 | + "noGlobalAssign": "error", |
| 81 | + "noImportAssign": "error", |
| 82 | + "noMisleadingCharacterClass": "error", |
| 83 | + "noMisleadingInstantiator": "error", |
| 84 | + "noPrototypeBuiltins": "error", |
| 85 | + "noRedeclare": "error", |
| 86 | + "noShadowRestrictedNames": "error", |
| 87 | + "noUnsafeDeclarationMerging": "error", |
| 88 | + "noUnsafeNegation": "error", |
| 89 | + "useGetterReturn": "error", |
| 90 | + "useValidTypeof": "error" |
| 91 | + } |
| 92 | + } |
| 93 | + }, |
| 94 | + "overrides": [ |
| 95 | + { |
| 96 | + "include": ["*.ts", "*.tsx", "*.mts", "*.cts"], |
| 97 | + "linter": { |
| 98 | + "rules": { |
| 99 | + "correctness": { |
| 100 | + "noUndeclaredVariables": "off" |
| 101 | + }, |
| 102 | + "style": { |
| 103 | + "noArguments": "error", |
| 104 | + "noVar": "error", |
| 105 | + "useConst": "error" |
| 106 | + } |
| 107 | + } |
| 108 | + } |
| 109 | + } |
| 110 | + ] |
| 111 | +} |
0 commit comments