-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc
46 lines (46 loc) · 1.29 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
{
"parser": "babel-eslint",
"extends": [
"airbnb",
"prettier",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended"
],
"plugins": ["prettier", "react", "react-hooks", "jsx-a11y"],
"env": {
"browser": true,
"jest": true
},
"rules": {
"semi": ["error", "never"],
"no-nested-ternary": 0,
"no-shadow": 1,
"func-names": 0,
"object-shorthand": 0,
"no-return-assign": [2, "except-parens"],
"no-unused-expressions": [
2,
{ "allowShortCircuit": true, "allowTernary": true }
],
"no-plusplus": [0, { "allowForLoopAfterthoughts": true }], // allow ++ in for loop expression
"no-underscore-dangle": 0,
"no-param-reassign": [2, { "props": false }],
"no-unused-vars": [2, { "args": "none" }], // don't check function arguments
"prefer-const": [
"error",
{
"destructuring": "all",
"ignoreReadBeforeAssign": false
}
],
"react/destructuring-assignment": 0,
"react/prop-types": 0,
"react/forbid-prop-types": 0,
"react/require-default-props": 0,
"react/display-name": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-props-no-spreading": "off"
}
}