diff --git a/.eslintrc.json b/.eslintrc.json index 916b456..9002da7 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,43 +1,43 @@ -// { -// "env": { -// "browser": true, -// "es2021": true -// }, -// "extends": ["plugin:react/recommended", "airbnb", "prettier"], -// "parser": "@typescript-eslint/parser", -// "rules": { -// "no-use-before-define": "off", -// "arrow-body-style": ["error", "as-needed"], -// "requireReturnForObjectLiteral": 0, -// "react/react-in-jsx-scope": "off", -// "react/jsx-filename-extension": ["warn", { "extensions": [".tsx"] }], -// "import/extensions": [ -// "error", -// "ignorePackages", -// { -// "js": "never", -// "jsx": "never", -// "ts": "never", -// "tsx": "never" -// } -// ], -// "react/function-component-definition": [ -// 2, -// { -// "namedComponents": [ -// "function-declaration", -// "arrow-function", -// "function-expression" -// ] -// } -// ] -// }, -// "settings": { -// "import/resolver": { -// "node": { -// "extensions": [".js", ".jsx", ".ts", ".tsx"] -// }, -// "typescript": {} -// } -// } -// } +{ + "env": { + "browser": true, + "es2021": true + }, + "extends": ["plugin:react/recommended", "airbnb", "prettier"], + "parser": "@typescript-eslint/parser", + "rules": { + "no-use-before-define": "off", + "arrow-body-style": ["error", "as-needed"], + "requireReturnForObjectLiteral": 0, + "react/react-in-jsx-scope": "off", + "react/jsx-filename-extension": ["warn", { "extensions": [".tsx"] }], + "import/extensions": [ + "error", + "ignorePackages", + { + "js": "never", + "jsx": "never", + "ts": "never", + "tsx": "never" + } + ], + "react/function-component-definition": [ + 2, + { + "namedComponents": [ + "function-declaration", + "arrow-function", + "function-expression" + ] + } + ] + }, + "settings": { + "import/resolver": { + "node": { + "extensions": [".js", ".jsx", ".ts", ".tsx"] + }, + "typescript": {} + } + } +}