| 1 | { |
| 2 | "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", |
| 3 | "organizeImports": { |
| 4 | "enabled": true |
| 5 | }, |
| 6 | "files": { |
| 7 | "ignore": [ |
| 8 | "**/dist/**/*", |
| 9 | "**/native.js", |
| 10 | "**/native.d.ts", |
| 11 | "**/npm/**/*", |
| 12 | "**/.vscode/**" |
| 13 | ] |
| 14 | }, |
| 15 | "formatter": { |
| 16 | "indentStyle": "space" |
| 17 | }, |
| 18 | "linter": { |
| 19 | "enabled": true, |
| 20 | "rules": { |
| 21 | "recommended": false, |
| 22 | "complexity": { |
| 23 | "noBannedTypes": "error", |
| 24 | "noExtraBooleanCast": "error", |
| 25 | "noMultipleSpacesInRegularExpressionLiterals": "error", |
| 26 | "noUselessCatch": "error", |
| 27 | "noUselessThisAlias": "error", |
| 28 | "noUselessTypeConstraint": "error", |
| 29 | "noWith": "error" |
| 30 | }, |
| 31 | "correctness": { |
| 32 | "noConstAssign": "error", |
| 33 | "noConstantCondition": "error", |
| 34 | "noEmptyCharacterClassInRegex": "error", |
| 35 | "noEmptyPattern": "error", |
| 36 | "noGlobalObjectCalls": "error", |
| 37 | "noInnerDeclarations": "error", |
| 38 | "noInvalidConstructorSuper": "error", |
| 39 | "noNewSymbol": "error", |
| 40 | "noNonoctalDecimalEscape": "error", |
| 41 | "noPrecisionLoss": "error", |
| 42 | "noSelfAssign": "error", |
| 43 | "noSetterReturn": "error", |
| 44 | "noSwitchDeclarations": "error", |
| 45 | "noUndeclaredVariables": "error", |
| 46 | "noUnreachable": "error", |
| 47 | "noUnreachableSuper": "error", |
| 48 | "noUnsafeFinally": "error", |
| 49 | "noUnsafeOptionalChaining": "error", |
| 50 | "noUnusedLabels": "error", |
| 51 | "noUnusedVariables": "warn", |
| 52 | "useIsNan": "error", |
| 53 | "useValidForDirection": "error", |
| 54 | "useYield": "error" |
| 55 | }, |
| 56 | "style": { |
| 57 | "noNamespace": "error", |
| 58 | "useAsConstAssertion": "error", |
| 59 | "useBlockStatements": "off", |
| 60 | "useNamingConvention": { |
| 61 | "level": "error", |
| 62 | "options": { |
| 63 | "strictCase": false |
| 64 | } |
| 65 | } |
| 66 | }, |
| 67 | "suspicious": { |
| 68 | "noAssignInExpressions": "error", |
| 69 | "noAsyncPromiseExecutor": "error", |
| 70 | "noCatchAssign": "error", |
| 71 | "noClassAssign": "error", |
| 72 | "noCompareNegZero": "error", |
| 73 | "noControlCharactersInRegex": "error", |
| 74 | "noDebugger": "error", |
| 75 | "noDuplicateCase": "error", |
| 76 | "noDuplicateClassMembers": "error", |
| 77 | "noDuplicateObjectKeys": "error", |
| 78 | "noDuplicateParameters": "error", |
| 79 | "noEmptyBlockStatements": "error", |
| 80 | "noExplicitAny": "warn", |
| 81 | "noExtraNonNullAssertion": "error", |
| 82 | "noFallthroughSwitchClause": "error", |
| 83 | "noFunctionAssign": "error", |
| 84 | "noGlobalAssign": "error", |
| 85 | "noImportAssign": "error", |
| 86 | "noMisleadingCharacterClass": "error", |
| 87 | "noMisleadingInstantiator": "error", |
| 88 | "noPrototypeBuiltins": "error", |
| 89 | "noRedeclare": "error", |
| 90 | "noShadowRestrictedNames": "error", |
| 91 | "noUnsafeDeclarationMerging": "error", |
| 92 | "noUnsafeNegation": "error", |
| 93 | "useGetterReturn": "error", |
| 94 | "useValidTypeof": "error" |
| 95 | } |
| 96 | }, |
| 97 | "ignore": [ |
| 98 | "**/dist/**/*", |
| 99 | "**/native.js", |
| 100 | "**/native.d.ts", |
| 101 | "__test__/docs/**/*", |
| 102 | "examples/**/*" |
| 103 | ] |
| 104 | }, |
| 105 | "javascript": { |
| 106 | "globals": [] |
| 107 | }, |
| 108 | "overrides": [ |
| 109 | { |
| 110 | "include": ["__test__/s3_integration.test.ts"], |
| 111 | "linter": { |
| 112 | "rules": { |
| 113 | "style": { |
| 114 | "useNamingConvention": "off" |
| 115 | } |
| 116 | } |
| 117 | } |
| 118 | }, |
| 119 | { |
| 120 | "include": [ |
| 121 | "**/*.ts", |
| 122 | "**/*.tsx", |
| 123 | "**/*.mts", |
| 124 | "**/*.cts", |
| 125 | "__test__/*.test.ts" |
| 126 | ], |
| 127 | "linter": { |
| 128 | "rules": { |
| 129 | "correctness": { |
| 130 | "noConstAssign": "off", |
| 131 | "noGlobalObjectCalls": "off", |
| 132 | "noInvalidConstructorSuper": "off", |
| 133 | "noNewSymbol": "off", |
| 134 | "noSetterReturn": "off", |
| 135 | "noUndeclaredVariables": "off", |
| 136 | "noUnreachable": "off", |
| 137 | "noUnreachableSuper": "off" |
| 138 | }, |
| 139 | "style": { |
| 140 | "noArguments": "error", |
| 141 | "noVar": "error", |
| 142 | "useConst": "error" |
| 143 | }, |
| 144 | "suspicious": { |
| 145 | "noDuplicateClassMembers": "off", |
| 146 | "noDuplicateObjectKeys": "off", |
| 147 | "noDuplicateParameters": "off", |
| 148 | "noFunctionAssign": "off", |
| 149 | "noImportAssign": "off", |
| 150 | "noRedeclare": "off", |
| 151 | "noUnsafeNegation": "off", |
| 152 | "useGetterReturn": "off" |
| 153 | } |
| 154 | } |
| 155 | } |
| 156 | } |
| 157 | ] |
| 158 | } |