-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
34 lines (34 loc) · 991 Bytes
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"extends": ["eslint:recommended", "airbnb", "prettier"],
"plugins": ["react-hooks"],
"env": {
"browser": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 8,
"requireConfigFile": false,
"babelOptions": {
"presets": ["@babel/preset-react"]
}
},
"rules": {
"no-console": [0],
"no-plusplus": [0],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/prop-types": [0],
"react/jsx-props-no-spreading": [0],
"import/prefer-default-export": [0],
"react/no-array-index-key": [0],
"react/no-danger": [0],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/function-component-definition": "off",
"no-unused-vars": "off",
"import/no-extraneous-dependencies": "off",
"arrow-body-style": [0],
"prefer-arrow-callback": [0],
"react/jsx-no-constructed-context-values": "off",
"no-param-reassign": "off"
}
}