-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc
More file actions
52 lines (52 loc) · 1.17 KB
/
.eslintrc
File metadata and controls
52 lines (52 loc) · 1.17 KB
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
47
48
49
50
51
52
{
"extends": "airbnb",
"settings": {
"import/resolver": {
"webpack": {
"config": "config/webpack.config.js"
}
}
},
"parser": "babel-eslint",
"plugins": [
"react",
"react-hooks"
],
"env": {
"amd": true,
"browser": true,
"node": true,
"es6": true,
"worker": true
},
"rules": {
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline"
}
],
"linebreak-style": [ "error", "windows" ],
"indent": [
"error",
4,
{ "SwitchCase": 1 }
],
"brace-style": [ "error", "stroustrup" ],
"import/prefer-default-export": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"jsx-quotes": [ "error", "prefer-single" ],
"react/jsx-indent": [ "error", 4 ],
"react/jsx-indent-props": [ "error", 4 ],
"react/prop-types": 0,
"react/state-in-constructor": 0,
"react/jsx-props-no-spreading": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}