-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy path.eslintrc.json
39 lines (39 loc) · 1.03 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
{
"extends": ["airbnb", "plugin:react/recommended"],
"parser": "babel-eslint",
"env": {
"browser": true
},
"globals": {
"Hammer": true
},
"plugins": [
"react-hooks"
],
"rules": {
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn", // Checks effect dependencies
"class-methods-use-this" : 0,
"global-require": 0,
"no-underscore-dangle": 0,
"max-len": [0],
"consistent-return": [1, { "treatUndefinedAsUnspecified": false }],
"react/forbid-prop-types": [0],
"jsx-a11y/click-events-have-key-events": [0],
"jsx-a11y/no-noninteractive-element-interactions": [0],
"jsx-a11y/no-static-elements-interactions": [0],
"no-return-assign": 0,
"no-console": ["warn", { "allow": ["info"] }],
"react/destructuring-assignment": [2],
"react/jsx-props-no-spreading": 1,
"jsx-a11y/control-has-associated-label": 0,
"import/no-unresolved": 0,
"no-mixed-operators": 0
},
"settings": {
"import/resolver": "webpack",
"react": {
"version": "detect"
}
}
}