-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
98 lines (98 loc) · 1.59 KB
/
.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"parser": "babel-eslint",
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"babel",
"react",
"promise"
],
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"__DEV__": false,
"__TEST__": false,
"__PROD__": false,
"__COVERAGE__": false
},
"rules": {
"semi": [
"error",
"never"
],
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"no-console": 1,
"no-debugger": 1,
"no-alert": 1,
"require-await": 1,
"require-yield": 1,
"no-var": 1,
"arrow-spacing": 1,
"space-in-parens": [
"error",
"never"
],
"object-curly-spacing": [
"error",
"always"
],
"array-bracket-spacing": [
"error",
"always"
],
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"no-template-curly-in-string": 1,
"array-callback-return": 1,
"consistent-return": [
"error",
{
"treatUndefinedAsUnspecified": true
}
],
"default-case": 1,
"no-div-regex": 1,
"no-else-return": 1,
"no-eq-null": 1,
"no-eval": 1,
"no-multi-spaces": 1,
"no-multi-str": 1,
"no-magic-numbers": [
1,
{
"ignoreArrayIndexes": true,
"ignore": [
1,
0,
-1
]
}
],
"comma-dangle": 1,
"space-before-blocks": 1
}
}