extend react eslint config

This commit is contained in:
Chika 2021-04-16 10:17:47 +03:00
parent aef11042b2
commit 514a29d389
2 changed files with 3 additions and 27 deletions

View File

@ -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"
}
}

View File

@ -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",