diff --git a/.eslintrc b/.eslintrc index 3f71858..bd8bbc7 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,79 +1,78 @@ { - "extends": [ - "airbnb", - "prettier", - "airbnb/hooks", - "eslint:recommended", - "plugin:react/recommended", - "plugin:@typescript-eslint/recommended", - "plugin:prettier/recommended" - ], - "parser": "@typescript-eslint/parser", - "env": { - "browser": true - }, - "plugins": ["prettier", "@typescript-eslint", "react-hooks"], - "root": true, - "settings": { - "import/resolver": { - "node": { - "alias": { - "map": [ - ["@", "./src"], - ["@public", "./public"] - ] - }, - "extensions": [".js", ".jsx", ".ts", ".tsx"] - } + "extends": [ + "airbnb", + "prettier", + "airbnb/hooks", + "eslint:recommended", + "plugin:react/recommended", + "plugin:@typescript-eslint/recommended", + "plugin:prettier/recommended" + ], + "parser": "@typescript-eslint/parser", + "env": { + "browser": true + }, + "plugins": ["prettier", "@typescript-eslint", "react-hooks"], + "root": true, + "settings": { + "import/resolver": { + "node": { + "alias": { + "map": [ + ["@", "./src"], + ["@public", "./public"] + ] + }, + "extensions": [".js", ".jsx", ".ts", ".tsx"] } - }, - "rules": { - "@typescript-eslint/no-unused-vars": "error", - "@typescript-eslint/explicit-function-return-type": "off", - "react/jsx-uses-react": "off", - "react/react-in-jsx-scope": "off", - "react/jsx-filename-extension": [ - 1, - { - "extensions": [".js", ".ts", ".tsx"] - } - ], - "import/prefer-default-export": "off", - "react/no-find-dom-node": 0, - "class-methods-use-this": "off", - "jsx-a11y/anchor-is-valid": [ - "error", - { - "components": ["Link"], - "specialLink": ["to", "hrefLeft", "hrefRight"], - "aspects": ["noHref", "invalidHref", "preferButton"] - } - ], - "import/extensions": "off", - "no-plusplus": "off", - "@typescript-eslint/no-non-null-assertion": "off", - "no-use-before-define": "off", - "@typescript-eslint/no-use-before-define": "error", - "no-shadow": "off", - "@typescript-eslint/no-shadow": "error", - "@typescript-eslint/no-explicit-any": "error", - "react-hooks/rules-of-hooks": "error", // Checks rules of Hooks - "react-hooks/exhaustive-deps": "warn", // Checks effect dependencies - "react/jsx-props-no-spreading": "off", - "import/no-extraneous-dependencies": "off", - "import/no-unresolved": "off", - "no-restricted-imports": [ - "error", - { - "patterns": ["@material-ui/*/*/*", "!@material-ui/core/test-utils/*"] - } - ], - "prettier/prettier": [ - "error", - { - "endOfLine": "auto" - } - ] } + }, + "rules": { + "@typescript-eslint/no-unused-vars": "error", + "@typescript-eslint/explicit-function-return-type": "off", + "react/jsx-uses-react": "off", + "react/react-in-jsx-scope": "off", + "react/jsx-filename-extension": [ + 1, + { + "extensions": [".js", ".ts", ".tsx"] + } + ], + "import/prefer-default-export": "off", + "react/no-find-dom-node": 0, + "class-methods-use-this": "off", + "jsx-a11y/anchor-is-valid": [ + "error", + { + "components": ["Link"], + "specialLink": ["to", "hrefLeft", "hrefRight"], + "aspects": ["noHref", "invalidHref", "preferButton"] + } + ], + "import/extensions": "off", + "no-plusplus": "off", + "@typescript-eslint/no-non-null-assertion": "off", + "no-use-before-define": "off", + "@typescript-eslint/no-use-before-define": "error", + "no-shadow": "off", + "@typescript-eslint/no-shadow": "error", + "@typescript-eslint/no-explicit-any": "error", + "react-hooks/rules-of-hooks": "error", // Checks rules of Hooks + "react-hooks/exhaustive-deps": "warn", // Checks effect dependencies + "react/jsx-props-no-spreading": "off", + "import/no-extraneous-dependencies": "off", + "import/no-unresolved": "off", + "no-restricted-imports": [ + "error", + { + "patterns": ["@material-ui/*/*/*", "!@material-ui/core/test-utils/*"] + } + ], + "prettier/prettier": [ + "error", + { + "endOfLine": "auto" + } + ] } - \ No newline at end of file +}