{ "root": false, "$schema": "https://biomejs.dev/schemas/2.2.5/schema.json", "files": { "ignoreUnknown": true, "maxSize": 10485760, "includes": ["src/**/*"] }, "formatter": { "enabled": true, "formatWithErrors": false, "indentStyle": "space", "indentWidth": 2, "lineEnding": "lf", "lineWidth": 100, "attributePosition": "auto" }, "linter": { "enabled": true, "rules": { "recommended": false, "complexity": { "noAdjacentSpacesInRegex": "error", "noBannedTypes": "error", "noExtraBooleanCast": "error", "noUselessCatch": "error", "noUselessEscapeInRegex": "error", "noUselessTypeConstraint": "error" }, "correctness": { "noChildrenProp": "error", "noConstAssign": "error", "noConstantCondition": "error", "noEmptyCharacterClassInRegex": "error", "noEmptyPattern": "error", "noGlobalObjectCalls": "error", "noInvalidBuiltinInstantiation": "error", "noInvalidConstructorSuper": "error", "noNonoctalDecimalEscape": "error", "noPrecisionLoss": "error", "noSelfAssign": "error", "noSetterReturn": "error", "noSwitchDeclarations": "error", "noUndeclaredVariables": "error", "noUnreachable": "error", "noUnreachableSuper": "error", "noUnsafeFinally": "error", "noUnsafeOptionalChaining": "error", "noUnusedLabels": "error", "noUnusedPrivateClassMembers": "error", "noUnusedVariables": "error", "noUnusedImports": "error", "useIsNan": "error", "useJsxKeyInIterable": "error", "useValidForDirection": "error", "useValidTypeof": "error", "useYield": "error" }, "nursery": {}, "security": { "noDangerouslySetInnerHtmlWithChildren": "error" }, "style": { "noNamespace": "error", "useArrayLiterals": "error", "useAsConstAssertion": "error", "useConst": "error", "useTemplate": "error" }, "suspicious": { "noAsyncPromiseExecutor": "error", "noCatchAssign": "error", "noClassAssign": "error", "noCommentText": "error", "noCompareNegZero": "error", "noConstantBinaryExpressions": "error", "noControlCharactersInRegex": "error", "noDebugger": "error", "noDuplicateCase": "error", "noDuplicateClassMembers": "error", "noDuplicateElseIf": "error", "noDuplicateJsxProps": "error", "noDuplicateObjectKeys": "error", "noDuplicateParameters": "error", "noEmptyBlockStatements": "error", "noExplicitAny": "error", "noExtraNonNullAssertion": "error", "noFallthroughSwitchClause": "error", "noFunctionAssign": "error", "noGlobalAssign": "error", "noImportAssign": "error", "noIrregularWhitespace": "error", "noMisleadingCharacterClass": "error", "noMisleadingInstantiator": "error", "noPrototypeBuiltins": "error", "noRedeclare": "error", "noShadowRestrictedNames": "error", "noSparseArray": "error", "noUnsafeDeclarationMerging": "error", "noUnsafeNegation": "error", "noUselessRegexBackrefs": "error", "noWith": "error", "useGetterReturn": "error", "useNamespaceKeyword": "error" } } }, "javascript": { "formatter": { "jsxQuoteStyle": "double", "quoteProperties": "asNeeded", "trailingCommas": "es5", "semicolons": "always", "arrowParentheses": "always", "bracketSameLine": false, "quoteStyle": "double", "attributePosition": "auto", "bracketSpacing": true }, "globals": [] }, "json": { "parser": { "allowComments": true, "allowTrailingCommas": false }, "formatter": { "enabled": true, "indentStyle": "space", "indentWidth": 2, "lineEnding": "lf", "lineWidth": 100, "trailingCommas": "none" } }, "overrides": [ { "linter": { "rules": { "suspicious": { "noExplicitAny": "off" } } } }, { "linter": { "rules": { "style": { "useNodejsImportProtocol": "off" } } } }, { "linter": { "rules": { "style": { "useNodejsImportProtocol": "off" }, "suspicious": { "noExplicitAny": "off" } } } }, { "includes": ["src/**/*.{ts,tsx}", "*.{ts,tsx}"], "linter": { "rules": { "complexity": { "noArguments": "error" }, "correctness": { "noConstAssign": "off", "noGlobalObjectCalls": "off", "noInvalidBuiltinInstantiation": "off", "noInvalidConstructorSuper": "off", "noSetterReturn": "off", "noUndeclaredVariables": "off", "noUnreachable": "off", "noUnreachableSuper": "off" }, "style": { "useConst": "error", "noCommonJs": "off" }, "suspicious": { "noClassAssign": "off", "noDuplicateClassMembers": "off", "noDuplicateObjectKeys": "off", "noDuplicateParameters": "off", "noFunctionAssign": "off", "noImportAssign": "off", "noRedeclare": "off", "noUnsafeNegation": "off", "noVar": "error", "useGetterReturn": "off" } } } } ] }