From 514a29d38949d37acaae9c42cea44f5ab49035af Mon Sep 17 00:00:00 2001 From: Chika Date: Fri, 16 Apr 2021 10:17:47 +0300 Subject: [PATCH] extend react eslint config --- .eslintrc.json | 24 ++---------------------- package.json | 6 +----- 2 files changed, 3 insertions(+), 27 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 9be5a0b..552473d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,28 +1,8 @@ { - "env": { - "browser": true, - "es2021": true - }, - "extends": [ - "eslint:recommended", - "plugin:react/recommended", - "plugin:@typescript-eslint/recommended" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaFeatures": { - "jsx": true - }, - "ecmaVersion": 12, - "sourceType": "module" - }, - "plugins": ["react", "@typescript-eslint"], + "extends": ["react-app"], "rules": { "no-console": "warn", - "react/display-name": "off", - "@typescript-eslint/explicit-module-boundary-types": "off", - "react/prop-types": "off", "no-unused-vars": "warn", - "react/react-in-jsx-scope": "off" + "import/no-anonymous-default-export": "off" } } diff --git a/package.json b/package.json index 1dabf65..1cb2529 100644 --- a/package.json +++ b/package.json @@ -41,11 +41,7 @@ "@types/react-router-dom": "^5.1.7", "@types/styled-components": "^5.1.9", "@types/styled-system": "^5.1.11", - "@typescript-eslint/eslint-plugin": "^4.22.0", - "@typescript-eslint/parser": "^4.22.0", - "dotenv": "^8.2.0", - "eslint": "^7.24.0", - "eslint-plugin-react": "^7.23.2" + "dotenv": "^8.2.0" }, "scripts": { "test": "craco test",