-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.json
41 lines (41 loc) · 1.25 KB
/
.eslintrc.json
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
{
"extends": ["standard", "react-app", "standard-react"],
"plugins": ["react-hooks"],
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"env": {
"es6": true
},
"rules": {
"comma-dangle": [2, "always-multiline"],
"curly": ["error", "all"],
"default-case": 1,
"indent": [2, 4],
"no-nested-ternary": 0,
"no-unused-vars": 1,
"no-use-before-define": 0,
"no-console": "warn",
"object-curly-spacing": ["error", "always"],
"operator-linebreak": [2, "after", { "overrides": { ":": "ignore", "?": "ignore" } }],
"prefer-reflect": 0,
"react/jsx-indent": ["error", 4],
"arrow-body-style": ["error", "always"],
"indent": ["error", 4, { "ignoredNodes": ["JSXElement *"] }],
"react/jsx-indent-props": ["error", 4],
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": [0],
"strict": 1,
"react/boolean-prop-naming": 1,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/no-unused-prop-types": "off"
},
"globals": {
"window": true
}
}