-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
44 lines (43 loc) · 986 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
35
36
37
38
39
40
41
42
43
44
{
"extends": "airbnb",
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
}
},
"plugins": ["react-hooks"],
"rules": {
"semi": 0,
"no-trailing-spaces": 0,
"no-console": 0,
"no-underscore-dangle": 0,
"implicit-arrow-linebreak": 0,
"no-constant-condition": 0,
"no-await-in-loop": 0,
"function-paren-newline": "warn",
"arrow-parens": ["error", "as-needed"],
"object-curly-newline": 0,
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"max-len": ["error", 120],
// "no-undef": "off",
"import/prefer-default-export": "off",
"react/sort-comp": [1],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"env": {
"browser": true,
"node": true,
"jest": true
}
}