{
    "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",

    "vcs": {
        "enabled": true,
        "clientKind": "git",
        "useIgnoreFile": true
    },

    "formatter": {
        "indentStyle": "space",
        "indentWidth": 4,
        "lineWidth": 120
    },

    "javascript": {
        "formatter": {
            "arrowParentheses": "asNeeded",
            "jsxQuoteStyle": "single",
            "quoteStyle": "single",
            "trailingCommas": "es5"
        }
    },

    "linter": {
        "rules": {
            "a11y": {
                "noLabelWithoutControl": "off",
                "noStaticElementInteractions": "off",
                "noSvgWithoutTitle": "off",
                "useAltText": "off",
                "useAnchorContent": "off",
                "useFocusableInteractive": "off",
                "useKeyWithClickEvents": "off",
                "useValidAnchor": "off"
            },

            "complexity": {
                "noForEach": "off",
                "noUselessCatchBinding": "error",
                "noUselessFragments": "warn",
                "noUselessUndefined": "error",
                "useMaxParams": "warn"
            },

            "style": {
                "noEnum": "warn",
                "noImplicitBoolean": "off",
                "noInferrableTypes": "error",
                "noParameterAssign": "error",
                "noUnusedTemplateLiteral": "error",
                "noUselessElse": "error",
                "useSelfClosingElements": {
                    "level": "warn",
                    "fix": "safe"
                },
                "useAsConstAssertion": "error",
                "useBlockStatements": "error",
                "useConsistentArrayType": {
                    "level": "error",
                    "options": { "syntax": "shorthand" }
                },
                "useConst": {
                    "level": "warn",
                    "fix": "unsafe"
                },
                "useDefaultParameterLast": "error",
                "useEnumInitializers": "error",
                "useForOf": "error",
                "useNamingConvention": "off",
                "useNumberNamespace": "error",
                "useShorthandFunctionType": "warn",
                "useSingleVarDeclarator": "error",
                "useConsistentArrowReturn": "warn"
            },

            "suspicious": {
                "noArrayIndexKey": "warn",
                "noAssignInExpressions": "warn",
                "noEmptyBlockStatements": "off",
                "noShadowRestrictedNames": "off",
                "useNamespaceKeyword": "warn"
            },

            "correctness": {
                "noUnusedImports": {
                    "level": "warn",
                    "fix": "safe"
                },
                "noUnusedVariables": "off",
                "useExhaustiveDependencies": "off",
                "useUniqueElementIds": "off",
                "noNestedComponentDefinitions": "error",
                "useSingleJsDocAsterisk": "warn"
            }
        }
    },

    "assist": {
        "actions": {
            "source": {
                "noDuplicateClasses": "on",
                "organizeImports": {
                    "level": "on",
                    "options": {
                        "groups": [
                            ":NODE:",
                            ":BLANK_LINE:",
                            ":PACKAGE:",
                            ":BLANK_LINE:",
                            ["/**"],
                            ":BLANK_LINE:",
                            ["#*", "#*/**", "@/**"],
                            ":BLANK_LINE:",
                            ":PATH:",
                            ":BLANK_LINE:",
                            ":URL:"
                        ]
                    }
                }
            }
        }
    },

    "overrides": [
        {
            "includes": ["**/*.scss", "**/*.css", "**/*.yaml", "**/*.yml"],
            "formatter": {
                "indentWidth": 2
            }
        }
    ]
}
