{
    "$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
    "vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": false },
    "files": {
        "ignoreUnknown": true,
        "includes": [
            "**/app/**",
            "**/lib/**",
            "**/types/**",
            "**/components/**",
            "biome.json",
            "next.config.ts",
            "package.json",
            "postcss.config.mjs",
            "tsconfig.json"
        ]
    },
    "formatter": {
        "enabled": true,
        "indentStyle": "space",
        "indentWidth": 4,
        "lineEnding": "lf",
        "lineWidth": 80,
        "bracketSpacing": true,
        "includes": ["**"]
    },
    "assist": {
        "actions": {
            "source": {
                "organizeImports": {
                    "level": "on",
                    "options": { "groups": ["react", { "type": false }] }
                }
            }
        }
    },
    "linter": {
        "enabled": true,
        "rules": {
            "a11y": "off",
            "complexity": { "noUselessFragments": "warn" },
            "correctness": { "useExhaustiveDependencies": "warn" },
            "performance": { "noAccumulatingSpread": "warn" },
            "security": { "noBlankTarget": "warn" },
            "style": {
                "noDefaultExport": "off",
                "noEnum": "error",
                "useImportType": {
                    "level": "warn",
                    "options": { "style": "separatedType" }
                }
            },
            "suspicious": {
                "noConsole": {
                    "level": "warn",
                    "options": { "allow": ["warn", "error"] }
                }
            },
            "nursery": {}
        },
        "includes": ["**/app/**", "**/lib/**", "**/types/**", "**/components/**"]
    },
    "javascript": {
        "formatter": {
            "jsxQuoteStyle": "double",
            "trailingCommas": "es5",
            "semicolons": "always",
            "arrowParentheses": "asNeeded",
            "quoteStyle": "single",
            "bracketSpacing": true
        }
    },
    "overrides": [
        {
            "includes": ["**/package.json"],
            "formatter": { "indentWidth": 2 }
        }
    ]
}
