{
    "$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
    "vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
    "files": {
        "ignoreUnknown": false,
        "includes": [
            "**",
            "!**/src/__fixtures__/**/*.ts",
            "!**/src/__fixtures__/**/*.json",
            "!**/scripts/local-run.ts"
        ]
    },
    "json": {
        "formatter": { "enabled": false }
    },
    "formatter": { "enabled": true, "indentStyle": "tab" },
    "assist": { "actions": { "source": { "organizeImports": "on" } } },
    "linter": {
        "enabled": true,
        "rules": {
            "recommended": false,
            "complexity": {
                "noBannedTypes": "warn",
                "noExtraBooleanCast": "error",
                "noStaticOnlyClass": "error",
                "noUselessCatch": "error",
                "noUselessConstructor": "error",
                "noUselessLoneBlockStatements": "error",
                "noUselessRename": "error",
                "noUselessTernary": "error",
                "noUselessTypeConstraint": "error",
                "noUselessUndefinedInitialization": "error",
                "noVoid": "off",
                "useLiteralKeys": "error",
                "useOptionalChain": "error",
                "useRegexLiterals": "error",
                "noAdjacentSpacesInRegex": "error",
                "noCommaOperator": "error"
            },
            "correctness": {
                "noConstAssign": "error",
                "noConstantCondition": "error",
                "noEmptyCharacterClassInRegex": "error",
                "noEmptyPattern": "error",
                "noGlobalObjectCalls": "error",
                "noInvalidConstructorSuper": "error",
                "noInvalidUseBeforeDeclaration": "error",
                "noPrecisionLoss": "error",
                "noSelfAssign": "error",
                "noSwitchDeclarations": "error",
                "noUndeclaredVariables": "off",
                "noUnreachable": "error",
                "noUnreachableSuper": "error",
                "noUnsafeFinally": "error",
                "noUnusedVariables": "error",
                "useIsNan": "error",
                "noInvalidBuiltinInstantiation": "error",
                "useValidTypeof": "error"
            },
            "security": { "noGlobalEval": "error" },
            "style": {
                "noNamespace": "error",
                "noNonNullAssertion": "warn",
                "noYodaExpression": "error",
                "useBlockStatements": "off",
                "useConsistentArrayType": "warn",
                "useConsistentBuiltinInstantiation": "error",
                "useConst": "error",
                "useShorthandFunctionType": "error",
                "useSingleVarDeclarator": "error",
                "useArrayLiterals": "off"
            },
            "suspicious": {
                "noAsyncPromiseExecutor": "error",
                "noCatchAssign": "error",
                "noClassAssign": "error",
                "noCompareNegZero": "error",
                "noConfusingVoidType": "warn",
                "noControlCharactersInRegex": "error",
                "noDebugger": "error",
                "noDoubleEquals": "error",
                "noDuplicateCase": "error",
                "noDuplicateClassMembers": "error",
                "noDuplicateObjectKeys": "error",
                "noDuplicateParameters": "error",
                "noEmptyBlockStatements": "error",
                "noExtraNonNullAssertion": "warn",
                "noFallthroughSwitchClause": "error",
                "noFunctionAssign": "error",
                "noGlobalAssign": "error",
                "noImportAssign": "error",
                "noMisleadingCharacterClass": "error",
                "noMisleadingInstantiator": "error",
                "noPrototypeBuiltins": "error",
                "noRedeclare": "error",
                "noSelfCompare": "error",
                "noShadowRestrictedNames": "error",
                "noSparseArray": "error",
                "noUnsafeNegation": "error",
                "useDefaultSwitchClauseLast": "error",
                "noWith": "error",
                "noVar": "warn"
            }
        },
        "includes": ["**", "!__generated__/**/*"]
    },
    "javascript": {
        "formatter": { "quoteStyle": "single" },
        "globals": ["document", "navigator", "window"]
    },
    "overrides": [
        {
            "includes": [
                "**/__tests__/**/*",
                "**/lib/test-utils/**/*",
                "**/tests/**/*",
                "**/scripts/**/*"
            ],
            "linter": {
                "rules": {
                    "complexity": {
                        "noBannedTypes": "off",
                        "noStaticOnlyClass": "off"
                    },
                    "style": { "noNonNullAssertion": "off" }
                }
            }
        }
    ]
}
