{
    "parser": "@typescript-eslint/parser",
    "extends": [
        "eslint:recommended",
        "plugin:react/recommended",
        "plugin:@typescript-eslint/recommended",
        "prettier"
    ],
    "plugins": [
        "react",
        "react-hooks",
        "typescript",
        "@typescript-eslint",
        "typescript-sort-keys",
        "simple-import-sort",
        "import"
    ],
    "env": {
        "browser": true,
        "node": true,
        "es6": true,
        "jest": true
    },
    "settings": {
        "react": {
            "version": "detect"
        },
        "import/parsers": {
            "@typescript-eslint/parser": [
                ".ts",
                ".tsx"
            ]
        }
    },
    "overrides": [
        {
            "files": [
                "*.js"
            ],
            "parser": "esprima",
            "rules": {
                "@typescript-eslint/no-var-requires": 0
            }
        }
    ],
    "ignorePatterns": [
        "**/generated/*.ts"
    ],
    "rules": {
        "max-len": "off",
        "no-useless-escape": "off",
        "object-curly-spacing": [
            "error",
            "always"
        ],
        "no-multi-spaces": "error",
        "no-console": [
            "error",
            {
                "allow": [
                    "info",
                    "warn",
                    "error"
                ]
            }
        ],
        "no-unused-vars": "off",
        "@typescript-eslint/no-non-null-assertion": "off",
        "@typescript-eslint/no-unused-vars": 2,
        "@typescript-eslint/interface-name-prefix": 0,
        "@typescript-eslint/no-empty-interface:": 0,
        "@typescript-eslint/explicit-function-return-type": 0,
        "@typescript-eslint/explicit-member-accessibility": 2,
        "@typescript-eslint/no-explicit-any": 0,
        "@typescript-eslint/no-empty-function": 0,
        "typescript-sort-keys/interface": "error",
        "typescript-sort-keys/string-enum": "error",
        "react-hooks/rules-of-hooks": "error",
        "react/jsx-tag-spacing": [
            "error",
            {
                "beforeSelfClosing": "always"
            }
        ],
        "react/prop-types": 0,
        "react/jsx-no-bind": 0,
        "sort-imports": "off",
        "import/no-duplicates": "error",
        "import/order": "off",
        "simple-import-sort/imports": [
            "error",
            {
                "groups": [
                    [
                        "^\\u0000"
                    ],
                    [
                        "^[^.]"
                    ],
                    [
                        "^@procyon?\\w"
                    ],
                    [
                        "^api?\\w",
                        "^app?\\w",
                        "^components?\\w",
                        "^constants?\\w",
                        "^features?\\w",
                        "^hooks?\\w",
                        "^localization?\\w",
                        "^pages?\\w",
                        "^utils?\\w",
                        "^types?\\w"
                    ],
                    [
                        "^\\."
                    ]
                ]
            }
        ]
    }
}