|
| 1 | +{ |
| 2 | + "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", |
| 3 | + "vcs": { |
| 4 | + "enabled": false, |
| 5 | + "clientKind": "git", |
| 6 | + "useIgnoreFile": false |
| 7 | + }, |
| 8 | + "files": { |
| 9 | + "ignoreUnknown": false, |
| 10 | + "ignore": ["android/*", "./ios/*"] |
| 11 | + }, |
| 12 | + "formatter": { |
| 13 | + "enabled": true, |
| 14 | + "useEditorconfig": true, |
| 15 | + "formatWithErrors": false, |
| 16 | + "indentStyle": "space", |
| 17 | + "indentWidth": 4, |
| 18 | + "lineEnding": "lf", |
| 19 | + "lineWidth": 80, |
| 20 | + "attributePosition": "auto", |
| 21 | + "bracketSpacing": true, |
| 22 | + "ignore": ["**/*.json"] |
| 23 | + }, |
| 24 | + "organizeImports": { |
| 25 | + "enabled": false |
| 26 | + }, |
| 27 | + "linter": { |
| 28 | + "enabled": true, |
| 29 | + "rules": { |
| 30 | + "recommended": false, |
| 31 | + "a11y": { |
| 32 | + "noAccessKey": "error", |
| 33 | + "noAriaUnsupportedElements": "error", |
| 34 | + "noAutofocus": "error", |
| 35 | + "noBlankTarget": "error", |
| 36 | + "noDistractingElements": "error", |
| 37 | + "noHeaderScope": "error", |
| 38 | + "noInteractiveElementToNoninteractiveRole": "error", |
| 39 | + "noLabelWithoutControl": "error", |
| 40 | + "noNoninteractiveElementToInteractiveRole": "error", |
| 41 | + "noNoninteractiveTabindex": "error", |
| 42 | + "noPositiveTabindex": "error", |
| 43 | + "noRedundantAlt": "error", |
| 44 | + "noRedundantRoles": "error", |
| 45 | + "useAltText": "error", |
| 46 | + "useAnchorContent": "error", |
| 47 | + "useAriaActivedescendantWithTabindex": "error", |
| 48 | + "useAriaPropsForRole": "error", |
| 49 | + "useButtonType": "error", |
| 50 | + "useFocusableInteractive": "error", |
| 51 | + "useHeadingContent": "error", |
| 52 | + "useHtmlLang": "error", |
| 53 | + "useIframeTitle": "error", |
| 54 | + "useKeyWithClickEvents": "error", |
| 55 | + "useKeyWithMouseEvents": "error", |
| 56 | + "useMediaCaption": "error", |
| 57 | + "useValidAnchor": "error", |
| 58 | + "useValidAriaProps": "error", |
| 59 | + "useValidAriaRole": { |
| 60 | + "level": "error", |
| 61 | + "options": { |
| 62 | + "allowInvalidRoles": [], |
| 63 | + "ignoreNonDom": false |
| 64 | + } |
| 65 | + }, |
| 66 | + "useValidAriaValues": "error", |
| 67 | + "useValidLang": "error" |
| 68 | + }, |
| 69 | + "complexity": { |
| 70 | + "noBannedTypes": "error", |
| 71 | + "noExtraBooleanCast": "error", |
| 72 | + "noMultipleSpacesInRegularExpressionLiterals": "error", |
| 73 | + "noUselessCatch": "error", |
| 74 | + "noUselessConstructor": "error", |
| 75 | + "noUselessFragments": "off", |
| 76 | + "noUselessLabel": "error", |
| 77 | + "noUselessLoneBlockStatements": "error", |
| 78 | + "noUselessRename": "error", |
| 79 | + "noUselessStringConcat": "error", |
| 80 | + "noUselessTernary": "error", |
| 81 | + "noUselessThisAlias": "error", |
| 82 | + "noUselessTypeConstraint": "error", |
| 83 | + "noUselessUndefinedInitialization": "error", |
| 84 | + "noVoid": "error", |
| 85 | + "noWith": "error", |
| 86 | + "useArrowFunction": "off", |
| 87 | + "useLiteralKeys": "off", |
| 88 | + "useRegexLiterals": "error" |
| 89 | + }, |
| 90 | + "correctness": { |
| 91 | + "noUnusedImports": "error", |
| 92 | + "noChildrenProp": "error", |
| 93 | + "noConstAssign": "error", |
| 94 | + "noConstantCondition": "warn", |
| 95 | + "noConstructorReturn": "error", |
| 96 | + "noEmptyCharacterClassInRegex": "error", |
| 97 | + "noEmptyPattern": "error", |
| 98 | + "noGlobalObjectCalls": "error", |
| 99 | + "noInnerDeclarations": "error", |
| 100 | + "noInvalidConstructorSuper": "error", |
| 101 | + "noInvalidUseBeforeDeclaration": "off", |
| 102 | + "noNewSymbol": "error", |
| 103 | + "noNodejsModules": "off", |
| 104 | + "noNonoctalDecimalEscape": "error", |
| 105 | + "noPrecisionLoss": "error", |
| 106 | + "noSelfAssign": "error", |
| 107 | + "noSetterReturn": "error", |
| 108 | + "noSwitchDeclarations": "error", |
| 109 | + "noUndeclaredVariables": "error", |
| 110 | + "noUnreachable": "error", |
| 111 | + "noUnreachableSuper": "error", |
| 112 | + "noUnsafeFinally": "error", |
| 113 | + "noUnsafeOptionalChaining": "error", |
| 114 | + "noUnusedLabels": "error", |
| 115 | + "noUnusedPrivateClassMembers": "off", |
| 116 | + "noUnusedVariables": "warn", |
| 117 | + "noVoidElementsWithChildren": "error", |
| 118 | + "useArrayLiterals": "off", |
| 119 | + "useExhaustiveDependencies": "off", |
| 120 | + "useHookAtTopLevel": "off", |
| 121 | + "useIsNan": "error", |
| 122 | + "useJsxKeyInIterable": "off", |
| 123 | + "useValidForDirection": "error", |
| 124 | + "useYield": "error" |
| 125 | + }, |
| 126 | + "security": { |
| 127 | + "noDangerouslySetInnerHtml": "warn", |
| 128 | + "noDangerouslySetInnerHtmlWithChildren": "error", |
| 129 | + "noGlobalEval": "error" |
| 130 | + }, |
| 131 | + "style": { |
| 132 | + "noArguments": "error", |
| 133 | + "noCommaOperator": "error", |
| 134 | + "noDefaultExport": "off", |
| 135 | + "noImplicitBoolean": "off", |
| 136 | + "noInferrableTypes": "error", |
| 137 | + "noNamespace": "error", |
| 138 | + "noNegationElse": "off", |
| 139 | + "noNonNullAssertion": "warn", |
| 140 | + "noParameterAssign": "off", |
| 141 | + "noRestrictedGlobals": { |
| 142 | + "level": "off", |
| 143 | + "options": { |
| 144 | + "deniedGlobals": [ |
| 145 | + "isFinite", |
| 146 | + "isNaN", |
| 147 | + "addEventListener", |
| 148 | + "blur", |
| 149 | + "close", |
| 150 | + "closed", |
| 151 | + "confirm", |
| 152 | + "defaultStatus", |
| 153 | + "defaultstatus", |
| 154 | + "event", |
| 155 | + "external", |
| 156 | + "find", |
| 157 | + "focus", |
| 158 | + "frameElement", |
| 159 | + "frames", |
| 160 | + "history", |
| 161 | + "innerHeight", |
| 162 | + "innerWidth", |
| 163 | + "length", |
| 164 | + "location", |
| 165 | + "locationbar", |
| 166 | + "menubar", |
| 167 | + "moveBy", |
| 168 | + "moveTo", |
| 169 | + "name", |
| 170 | + "onblur", |
| 171 | + "onerror", |
| 172 | + "onfocus", |
| 173 | + "onload", |
| 174 | + "onresize", |
| 175 | + "onunload", |
| 176 | + "open", |
| 177 | + "opener", |
| 178 | + "opera", |
| 179 | + "outerHeight", |
| 180 | + "outerWidth", |
| 181 | + "pageXOffset", |
| 182 | + "pageYOffset", |
| 183 | + "parent", |
| 184 | + "print", |
| 185 | + "removeEventListener", |
| 186 | + "resizeBy", |
| 187 | + "resizeTo", |
| 188 | + "screen", |
| 189 | + "screenLeft", |
| 190 | + "screenTop", |
| 191 | + "screenX", |
| 192 | + "screenY", |
| 193 | + "scroll", |
| 194 | + "scrollbars", |
| 195 | + "scrollBy", |
| 196 | + "scrollTo", |
| 197 | + "scrollX", |
| 198 | + "scrollY", |
| 199 | + "self", |
| 200 | + "status", |
| 201 | + "statusbar", |
| 202 | + "stop", |
| 203 | + "toolbar", |
| 204 | + "top" |
| 205 | + ] |
| 206 | + } |
| 207 | + }, |
| 208 | + "noUselessElse": "off", |
| 209 | + "noVar": "error", |
| 210 | + "noYodaExpression": "error", |
| 211 | + "useAsConstAssertion": "error", |
| 212 | + "useBlockStatements": "off", |
| 213 | + "useCollapsedElseIf": "error", |
| 214 | + "useConsistentBuiltinInstantiation": "off", |
| 215 | + "useConst": "error", |
| 216 | + "useDefaultParameterLast": "off", |
| 217 | + "useDefaultSwitchClause": "error", |
| 218 | + "useExponentiationOperator": "error", |
| 219 | + "useFragmentSyntax": "error", |
| 220 | + "useNumericLiterals": "error", |
| 221 | + "useShorthandAssign": "error", |
| 222 | + "useSingleVarDeclarator": "error", |
| 223 | + "useTemplate": "error", |
| 224 | + "useThrowOnlyError": "error" |
| 225 | + }, |
| 226 | + "suspicious": { |
| 227 | + "noArrayIndexKey": "off", |
| 228 | + "noAssignInExpressions": "error", |
| 229 | + "noAsyncPromiseExecutor": "error", |
| 230 | + "noCatchAssign": "error", |
| 231 | + "noClassAssign": "error", |
| 232 | + "noCommentText": "error", |
| 233 | + "noCompareNegZero": "error", |
| 234 | + "noConfusingLabels": "error", |
| 235 | + "noConsole": "off", |
| 236 | + "noControlCharactersInRegex": "error", |
| 237 | + "noDebugger": "error", |
| 238 | + "noDoubleEquals": "error", |
| 239 | + "noDuplicateCase": "error", |
| 240 | + "noDuplicateClassMembers": "error", |
| 241 | + "noDuplicateJsxProps": "error", |
| 242 | + "noDuplicateObjectKeys": "error", |
| 243 | + "noDuplicateParameters": "error", |
| 244 | + "noEmptyBlockStatements": "error", |
| 245 | + "noEmptyInterface": "error", |
| 246 | + "noExplicitAny": "off", |
| 247 | + "noExtraNonNullAssertion": "error", |
| 248 | + "noFallthroughSwitchClause": "error", |
| 249 | + "noFunctionAssign": "error", |
| 250 | + "noGlobalAssign": "error", |
| 251 | + "noImportAssign": "off", |
| 252 | + "noLabelVar": "error", |
| 253 | + "noMisleadingCharacterClass": "error", |
| 254 | + "noMisleadingInstantiator": "error", |
| 255 | + "noPrototypeBuiltins": "error", |
| 256 | + "noRedeclare": "error", |
| 257 | + "noSelfCompare": "error", |
| 258 | + "noShadowRestrictedNames": "off", |
| 259 | + "noSparseArray": "error", |
| 260 | + "noUnsafeNegation": "error", |
| 261 | + "useAwait": "off", |
| 262 | + "useDefaultSwitchClauseLast": "error", |
| 263 | + "useGetterReturn": "error", |
| 264 | + "useNamespaceKeyword": "error", |
| 265 | + "useValidTypeof": "error" |
| 266 | + } |
| 267 | + }, |
| 268 | + "ignore": [ |
| 269 | + "__tests__/*", |
| 270 | + "docs/*", |
| 271 | + "**/*.config.js", |
| 272 | + "src/types/anys.d.ts", |
| 273 | + "./ios", |
| 274 | + "./android/*", |
| 275 | + "./*/android/*", |
| 276 | + "./*/ios/*", |
| 277 | + "./.vscode/*", |
| 278 | + "./.storybook/*", |
| 279 | + "./src/apis/generated" |
| 280 | + ] |
| 281 | + }, |
| 282 | + "javascript": { |
| 283 | + "formatter": { |
| 284 | + "jsxQuoteStyle": "double", |
| 285 | + "quoteProperties": "preserve", |
| 286 | + "trailingCommas": "all", |
| 287 | + "semicolons": "always", |
| 288 | + "arrowParentheses": "asNeeded", |
| 289 | + "bracketSameLine": false, |
| 290 | + "quoteStyle": "single", |
| 291 | + "attributePosition": "multiline", |
| 292 | + "bracketSpacing": false |
| 293 | + }, |
| 294 | + "jsxRuntime": "reactClassic" |
| 295 | + }, |
| 296 | + "overrides": [ |
| 297 | + { |
| 298 | + "include": ["*.ts", "*.tsx", "*.mts", "*.cts"], |
| 299 | + "linter": { |
| 300 | + "rules": { |
| 301 | + "correctness": { |
| 302 | + "noUnusedImports": "error", |
| 303 | + "noConstAssign": "off", |
| 304 | + "noGlobalObjectCalls": "off", |
| 305 | + "noInvalidConstructorSuper": "off", |
| 306 | + "noNewSymbol": "off", |
| 307 | + "noSetterReturn": "off", |
| 308 | + "noUndeclaredVariables": "off", |
| 309 | + "noUnreachable": "off", |
| 310 | + "noUnreachableSuper": "off" |
| 311 | + }, |
| 312 | + "style": { |
| 313 | + "noArguments": "error", |
| 314 | + "noVar": "error", |
| 315 | + "useConst": "error" |
| 316 | + }, |
| 317 | + "suspicious": { |
| 318 | + "noDuplicateClassMembers": "off", |
| 319 | + "noDuplicateObjectKeys": "off", |
| 320 | + "noDuplicateParameters": "off", |
| 321 | + "noFunctionAssign": "off", |
| 322 | + "noImportAssign": "off", |
| 323 | + "noRedeclare": "off", |
| 324 | + "noUnsafeNegation": "off", |
| 325 | + "useGetterReturn": "off", |
| 326 | + "useValidTypeof": "off" |
| 327 | + } |
| 328 | + } |
| 329 | + } |
| 330 | + }, |
| 331 | + { |
| 332 | + "include": ["*.ts", "*.tsx", "*.mts", "*.cts"], |
| 333 | + "linter": { |
| 334 | + "rules": { |
| 335 | + "correctness": { |
| 336 | + "noConstAssign": "off", |
| 337 | + "noGlobalObjectCalls": "off", |
| 338 | + "noInvalidConstructorSuper": "off", |
| 339 | + "noNewSymbol": "off", |
| 340 | + "noSetterReturn": "off", |
| 341 | + "noUndeclaredVariables": "off", |
| 342 | + "noUnreachable": "off", |
| 343 | + "noUnreachableSuper": "off" |
| 344 | + }, |
| 345 | + "style": { |
| 346 | + "noArguments": "error", |
| 347 | + "noVar": "error", |
| 348 | + "useConst": "error" |
| 349 | + }, |
| 350 | + "suspicious": { |
| 351 | + "noDuplicateClassMembers": "off", |
| 352 | + "noDuplicateObjectKeys": "off", |
| 353 | + "noDuplicateParameters": "off", |
| 354 | + "noFunctionAssign": "off", |
| 355 | + "noImportAssign": "off", |
| 356 | + "noRedeclare": "off", |
| 357 | + "noUnsafeNegation": "off", |
| 358 | + "useGetterReturn": "off", |
| 359 | + "useValidTypeof": "off" |
| 360 | + } |
| 361 | + } |
| 362 | + } |
| 363 | + } |
| 364 | + ] |
| 365 | +} |
0 commit comments