-
Notifications
You must be signed in to change notification settings - Fork 306
/
.eslintrc
44 lines (44 loc) · 1.27 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
{
"extends": ["airbnb", "eslint-config-prettier"],
"env": {
"browser": true,
"node": true,
"jest": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"forOf": true,
"jsx": true,
"es6": true
}
},
"plugins": ["react-hooks"],
"rules": {
"comma-dangle": 0,
"indent": [2, 2, { "SwitchCase": 1 }],
"react/prop-types": 0,
"func-names": 0,
"arrow-body-style": [2, "as-needed"],
"no-underscore-dangle": ["error", { "allow": ["__INITIAL_STATE__"] }],
"new-cap": ["error", { "capIsNewExceptions": ["Map", "List"] }],
"react/prefer-es6-class": 1,
"no-restricted-syntax": 0,
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"quote-props": ["error", "consistent"],
"no-console": 0,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-props-no-spreading": [0, { "custom": "ignore" }],
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/label-has-for": [
2,
{ "required": { "some": ["nesting", "id"] } }
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"globals": {
"$": true
}
}