{
    "$schema": "https://biomejs.dev/schemas/2.5.2/schema.json",
    "formatter": {
        "enabled": true,
        "formatWithErrors": false,
        "indentStyle": "space",
        "indentWidth": 4,
        "lineEnding": "lf",
        "lineWidth": 80,
        "attributePosition": "auto",
        "bracketSpacing": true,
        "includes": ["**"]
    },
    "assist": {
        "actions": {
            "source": {
                "organizeImports": "on",
                "useSortedProperties": "on"
            }
        }
    },
    "linter": {
        "enabled": true,
        "rules": {
            "preset": "recommended",
            "a11y": "off",
            "complexity": {
                "noExcessiveCognitiveComplexity": "info",
                "noExcessiveNestedTestSuites": "off",
                "noImportantStyles": "off",
                "noUselessFragments": "warn",
                "useOptionalChain": "info"
            },
            "correctness": {
                "noNestedComponentDefinitions": "info",
                "noReactPropAssignments": "error",
                "noUnknownProperty": "info",
                "useExhaustiveDependencies": "warn",
                "useUniqueElementIds": "off"
            },
            "performance": {
                "noAccumulatingSpread": "warn",
                "noAwaitInLoops": "warn",
                "noDelete": "warn",
                "useTopLevelRegex": "warn"
            },
            "security": {
                "noBlankTarget": "warn",
                "noDangerouslySetInnerHtml": "off"
            },
            "style": {
                "noDefaultExport": "error",
                "noRestrictedImports": {
                    "level": "error",
                    "options": {
                        "paths": {
                            "vitest": "Use vitest globals instead of importing from vitest."
                        }
                    }
                },
                "noDescendingSpecificity": "info",
                "noEnum": "error",
                "useAtIndex": "warn",
                "useConsistentArrayType": "warn",
                "useExplicitLengthCheck": "warn",
                "useForOf": "warn",
                "useImportType": {
                    "level": "warn",
                    "options": {
                        "style": "separatedType"
                    }
                },
                "useTemplate": "info",
                "useThrowNewError": "error",
                "useThrowOnlyError": "error"
            },
            "suspicious": {
                "noArrayIndexKey": "info",
                "noExplicitAny": "error",
                "noConsole": {
                    "level": "warn",
                    "options": {
                        "allow": ["warn", "error"]
                    }
                },
                "noImplicitAnyLet": "off",
                "useGuardForIn": "warn",
                "useIterableCallbackReturn": "off"
            },
            "nursery": {}
        }
    },
    "javascript": {
        "formatter": {
            "jsxQuoteStyle": "double",
            "quoteProperties": "asNeeded",
            "trailingCommas": "es5",
            "semicolons": "always",
            "arrowParentheses": "asNeeded",
            "bracketSameLine": false,
            "quoteStyle": "single",
            "attributePosition": "auto",
            "bracketSpacing": true
        }
    }
}
