extend react eslint config
This commit is contained in:
parent
aef11042b2
commit
514a29d389
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -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",
|
||||
|
||||
Reference in New Issue
Block a user