-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
58 lines (58 loc) · 1.12 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"extends": ["react-app", "react-app/jest", "plugin:storybook/recommended"],
"rules": {
"no-console": "warn",
"no-alert": "warn",
"no-debugger": "warn",
"max-lines": ["error", 1000],
"max-lines-per-function": ["error", 200],
"max-params": ["error", 7],
"max-len": [
"error",
{
"code": 120
}
],
"prefer-const": [
"error",
{
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"camelcase": [
"error",
{
"properties": "always"
}
],
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"object-curly-spacing": ["warn", "always"],
"space-before-blocks": "warn",
"arrow-spacing": [
"error",
{
"before": true,
"after": true
}
],
"space-infix-ops": "error",
"comma-dangle": ["error", "never"],
"semi": ["warn", "always"],
"dot-notation": "error",
"quotes": ["error", "single"],
"no-extra-parens": [
"warn",
"all",
{
"ignoreJSX": "all"
}
]
}
}