|
| 1 | +{ |
| 2 | + "$schema": "https://biomejs.dev/schemas/2.3.1/schema.json", |
| 3 | + "vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true }, |
| 4 | + "files": { "includes": ["**", "!!**/dist"] }, |
| 5 | + "formatter": { |
| 6 | + "enabled": true, |
| 7 | + "formatWithErrors": false, |
| 8 | + "indentStyle": "space", |
| 9 | + "indentWidth": 2, |
| 10 | + "lineEnding": "lf", |
| 11 | + "lineWidth": 100, |
| 12 | + "attributePosition": "auto", |
| 13 | + "bracketSameLine": false, |
| 14 | + "bracketSpacing": true, |
| 15 | + "expand": "auto", |
| 16 | + "useEditorconfig": true |
| 17 | + }, |
| 18 | + "linter": { |
| 19 | + "enabled": true, |
| 20 | + "rules": { |
| 21 | + "recommended": false, |
| 22 | + "complexity": { |
| 23 | + "noAdjacentSpacesInRegex": "error", |
| 24 | + "noArguments": "error", |
| 25 | + "noCommaOperator": "error", |
| 26 | + "noExtraBooleanCast": "error", |
| 27 | + "noImplicitCoercions": "off", |
| 28 | + "noUselessCatch": "error", |
| 29 | + "noUselessConstructor": "error", |
| 30 | + "noUselessEscapeInRegex": "error", |
| 31 | + "noUselessLabel": "error", |
| 32 | + "noUselessLoneBlockStatements": "error", |
| 33 | + "noUselessRename": "error", |
| 34 | + "noUselessStringConcat": "error", |
| 35 | + "noUselessTernary": "error", |
| 36 | + "noUselessUndefinedInitialization": "error", |
| 37 | + "noVoid": "error", |
| 38 | + "useLiteralKeys": "error", |
| 39 | + "useNumericLiterals": "error", |
| 40 | + "useRegexLiterals": "error" |
| 41 | + }, |
| 42 | + "correctness": { |
| 43 | + "noConstAssign": "error", |
| 44 | + "noConstantCondition": "warn", |
| 45 | + "noConstructorReturn": "error", |
| 46 | + "noEmptyCharacterClassInRegex": "error", |
| 47 | + "noEmptyPattern": "error", |
| 48 | + "noGlobalObjectCalls": "error", |
| 49 | + "noInnerDeclarations": "error", |
| 50 | + "noInvalidConstructorSuper": "error", |
| 51 | + "noInvalidUseBeforeDeclaration": "error", |
| 52 | + "noNodejsModules": "off", |
| 53 | + "noNonoctalDecimalEscape": "error", |
| 54 | + "noPrecisionLoss": "error", |
| 55 | + "noSelfAssign": "error", |
| 56 | + "noSetterReturn": "error", |
| 57 | + "noSwitchDeclarations": "error", |
| 58 | + "noUndeclaredDependencies": "error", |
| 59 | + "noUndeclaredVariables": "error", |
| 60 | + "noUnreachable": "error", |
| 61 | + "noUnreachableSuper": "error", |
| 62 | + "noUnsafeFinally": "error", |
| 63 | + "noUnsafeOptionalChaining": "error", |
| 64 | + "noUnusedLabels": "error", |
| 65 | + "noUnusedPrivateClassMembers": "off", |
| 66 | + "noUnusedVariables": "error", |
| 67 | + "useIsNan": "error", |
| 68 | + "useParseIntRadix": "error", |
| 69 | + "useValidForDirection": "error", |
| 70 | + "useValidTypeof": "error", |
| 71 | + "useYield": "error" |
| 72 | + }, |
| 73 | + "performance": { "noAwaitInLoops": "error" }, |
| 74 | + "security": { "noGlobalEval": "error" }, |
| 75 | + "style": { |
| 76 | + "noCommonJs": "off", |
| 77 | + "noDefaultExport": "off", |
| 78 | + "noMagicNumbers": "off", |
| 79 | + "noNegationElse": "off", |
| 80 | + "noNestedTernary": "error", |
| 81 | + "noParameterAssign": "error", |
| 82 | + "noRestrictedGlobals": { |
| 83 | + "level": "error", |
| 84 | + "options": { |
| 85 | + "deniedGlobals": { |
| 86 | + "defaultStatus": "TODO: Add a custom message here.", |
| 87 | + "status": "TODO: Add a custom message here.", |
| 88 | + "scroll": "TODO: Add a custom message here.", |
| 89 | + "outerHeight": "TODO: Add a custom message here.", |
| 90 | + "screenX": "TODO: Add a custom message here.", |
| 91 | + "opener": "TODO: Add a custom message here.", |
| 92 | + "onfocus": "TODO: Add a custom message here.", |
| 93 | + "pageYOffset": "TODO: Add a custom message here.", |
| 94 | + "addEventListener": "TODO: Add a custom message here.", |
| 95 | + "defaultstatus": "TODO: Add a custom message here.", |
| 96 | + "history": "TODO: Add a custom message here.", |
| 97 | + "frames": "TODO: Add a custom message here.", |
| 98 | + "screenY": "TODO: Add a custom message here.", |
| 99 | + "focus": "TODO: Add a custom message here.", |
| 100 | + "outerWidth": "TODO: Add a custom message here.", |
| 101 | + "opera": "TODO: Add a custom message here.", |
| 102 | + "external": "TODO: Add a custom message here.", |
| 103 | + "innerHeight": "TODO: Add a custom message here.", |
| 104 | + "closed": "TODO: Add a custom message here.", |
| 105 | + "isFinite": "Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite", |
| 106 | + "frameElement": "TODO: Add a custom message here.", |
| 107 | + "scrollY": "TODO: Add a custom message here.", |
| 108 | + "self": "TODO: Add a custom message here.", |
| 109 | + "onblur": "TODO: Add a custom message here.", |
| 110 | + "find": "TODO: Add a custom message here.", |
| 111 | + "parent": "TODO: Add a custom message here.", |
| 112 | + "top": "TODO: Add a custom message here.", |
| 113 | + "moveBy": "TODO: Add a custom message here.", |
| 114 | + "menubar": "TODO: Add a custom message here.", |
| 115 | + "length": "TODO: Add a custom message here.", |
| 116 | + "onerror": "TODO: Add a custom message here.", |
| 117 | + "onresize": "TODO: Add a custom message here.", |
| 118 | + "removeEventListener": "TODO: Add a custom message here.", |
| 119 | + "onload": "TODO: Add a custom message here.", |
| 120 | + "scrollTo": "TODO: Add a custom message here.", |
| 121 | + "moveTo": "TODO: Add a custom message here.", |
| 122 | + "scrollX": "TODO: Add a custom message here.", |
| 123 | + "name": "TODO: Add a custom message here.", |
| 124 | + "toolbar": "TODO: Add a custom message here.", |
| 125 | + "innerWidth": "TODO: Add a custom message here.", |
| 126 | + "location": "TODO: Add a custom message here.", |
| 127 | + "locationbar": "TODO: Add a custom message here.", |
| 128 | + "scrollBy": "TODO: Add a custom message here.", |
| 129 | + "resizeTo": "TODO: Add a custom message here.", |
| 130 | + "stop": "TODO: Add a custom message here.", |
| 131 | + "scrollbars": "TODO: Add a custom message here.", |
| 132 | + "blur": "TODO: Add a custom message here.", |
| 133 | + "screenTop": "TODO: Add a custom message here.", |
| 134 | + "confirm": "TODO: Add a custom message here.", |
| 135 | + "screen": "TODO: Add a custom message here.", |
| 136 | + "screenLeft": "TODO: Add a custom message here.", |
| 137 | + "event": "TODO: Add a custom message here.", |
| 138 | + "onunload": "TODO: Add a custom message here.", |
| 139 | + "pageXOffset": "TODO: Add a custom message here.", |
| 140 | + "resizeBy": "TODO: Add a custom message here.", |
| 141 | + "statusbar": "TODO: Add a custom message here.", |
| 142 | + "isNaN": "Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan", |
| 143 | + "close": "TODO: Add a custom message here.", |
| 144 | + "open": "TODO: Add a custom message here.", |
| 145 | + "print": "TODO: Add a custom message here." |
| 146 | + } |
| 147 | + } |
| 148 | + }, |
| 149 | + "noRestrictedImports": "off", |
| 150 | + "noYodaExpression": "error", |
| 151 | + "useArrayLiterals": "error", |
| 152 | + "useBlockStatements": "off", |
| 153 | + "useCollapsedElseIf": "error", |
| 154 | + "useConsistentBuiltinInstantiation": "error", |
| 155 | + "useConst": "error", |
| 156 | + "useDefaultParameterLast": "error", |
| 157 | + "useDefaultSwitchClause": "error", |
| 158 | + "useExponentiationOperator": "error", |
| 159 | + "useExportsLast": "off", |
| 160 | + "useGroupedAccessorPairs": "error", |
| 161 | + "useObjectSpread": "error", |
| 162 | + "useShorthandAssign": "error", |
| 163 | + "useSingleVarDeclarator": "error", |
| 164 | + "useSymbolDescription": "error", |
| 165 | + "useTemplate": "error" |
| 166 | + }, |
| 167 | + "suspicious": { |
| 168 | + "noAlert": "warn", |
| 169 | + "noAsyncPromiseExecutor": "error", |
| 170 | + "noBitwiseOperators": "error", |
| 171 | + "noCatchAssign": "error", |
| 172 | + "noClassAssign": "error", |
| 173 | + "noCompareNegZero": "error", |
| 174 | + "noConsole": "warn", |
| 175 | + "noControlCharactersInRegex": "error", |
| 176 | + "noDebugger": "error", |
| 177 | + "noDoubleEquals": "error", |
| 178 | + "noDuplicateCase": "error", |
| 179 | + "noDuplicateClassMembers": "error", |
| 180 | + "noDuplicateElseIf": "error", |
| 181 | + "noDuplicateObjectKeys": "error", |
| 182 | + "noDuplicateParameters": "error", |
| 183 | + "noEmptyBlockStatements": "error", |
| 184 | + "noFallthroughSwitchClause": "error", |
| 185 | + "noFunctionAssign": "error", |
| 186 | + "noGlobalAssign": "error", |
| 187 | + "noImportAssign": "error", |
| 188 | + "noIrregularWhitespace": "error", |
| 189 | + "noLabelVar": "error", |
| 190 | + "noMisleadingCharacterClass": "error", |
| 191 | + "noOctalEscape": "error", |
| 192 | + "noPrototypeBuiltins": "error", |
| 193 | + "noRedeclare": "error", |
| 194 | + "noSelfCompare": "error", |
| 195 | + "noShadowRestrictedNames": "error", |
| 196 | + "noSparseArray": "error", |
| 197 | + "noTemplateCurlyInString": "error", |
| 198 | + "noUnsafeNegation": "error", |
| 199 | + "noUselessRegexBackrefs": "error", |
| 200 | + "noVar": "error", |
| 201 | + "noWith": "error", |
| 202 | + "useAwait": "off", |
| 203 | + "useDefaultSwitchClauseLast": "error", |
| 204 | + "useGetterReturn": "error", |
| 205 | + "useGuardForIn": "error", |
| 206 | + "useIterableCallbackReturn": "error" |
| 207 | + } |
| 208 | + }, |
| 209 | + "includes": ["**", "!**/node_modules/", "!**/dist/"] |
| 210 | + }, |
| 211 | + "javascript": { |
| 212 | + "formatter": { |
| 213 | + "jsxQuoteStyle": "double", |
| 214 | + "quoteProperties": "asNeeded", |
| 215 | + "trailingCommas": "es5", |
| 216 | + "semicolons": "asNeeded", |
| 217 | + "arrowParentheses": "always", |
| 218 | + "bracketSameLine": false, |
| 219 | + "quoteStyle": "single", |
| 220 | + "attributePosition": "auto", |
| 221 | + "bracketSpacing": true |
| 222 | + }, |
| 223 | + "globals": ["SharedArrayBuffer", "Atomics"] |
| 224 | + }, |
| 225 | + "html": { |
| 226 | + "formatter": { |
| 227 | + "indentScriptAndStyle": false, |
| 228 | + "selfCloseVoidElements": "always" |
| 229 | + } |
| 230 | + }, |
| 231 | + "overrides": [ |
| 232 | + { |
| 233 | + "includes": ["*.ts", "*.tsx"], |
| 234 | + "linter": { |
| 235 | + "rules": { |
| 236 | + "correctness": { |
| 237 | + "noConstAssign": "off", |
| 238 | + "noGlobalObjectCalls": "off", |
| 239 | + "noInvalidConstructorSuper": "off", |
| 240 | + "noSetterReturn": "off", |
| 241 | + "noUndeclaredVariables": "off", |
| 242 | + "noUnreachable": "off", |
| 243 | + "noUnreachableSuper": "off", |
| 244 | + "useValidTypeof": "off" |
| 245 | + }, |
| 246 | + "suspicious": { |
| 247 | + "noDuplicateClassMembers": "off", |
| 248 | + "noDuplicateObjectKeys": "off", |
| 249 | + "noDuplicateParameters": "off", |
| 250 | + "noFunctionAssign": "off", |
| 251 | + "noImportAssign": "off", |
| 252 | + "noRedeclare": "off", |
| 253 | + "noUnsafeNegation": "off", |
| 254 | + "useGetterReturn": "off" |
| 255 | + } |
| 256 | + } |
| 257 | + } |
| 258 | + } |
| 259 | + ], |
| 260 | + "assist": { |
| 261 | + "enabled": true, |
| 262 | + "actions": { "source": { "organizeImports": "on" } } |
| 263 | + } |
| 264 | +} |
0 commit comments