-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
34 lines (34 loc) · 862 Bytes
/
.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
{
"env": {
"amd": true,
"browser": true,
"es6": true,
"jquery": true,
"node": true,
"worker": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"airbnb",
"react-app"
],
"parser": "babel-eslint",
"plugins": ["babel", "react", "react-hooks"],
"rules": {
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"linebreak-style": [2, "windows"],
"react/jsx-one-expression-per-line": "off",
"react/jsx-fragments": "off",
"react/jsx-props-no-spreading": "off",
"max-len": [2, { "code": 160, "tabWidth": 2, "ignoreUrls": true }],
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn" // Checks effect dependencies
}
}