-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
51 lines (47 loc) · 1.21 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
{
"parser": "babel-eslint",
"env": {
"node": true,
"es6": true,
"mocha": true
},
"rules": {
/* Errors */
"no-undef": 2,
"no-cond-assign": 2,
"no-const-assign": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-ex-assign": 2,
"no-func-assign": 2,
"no-inner-declarations": 2,
"no-invalid-regexp": 2,
"no-sparse-arrays": 2,
"no-unreachable": 2,
"use-isnan": 2,
/* Warnings */
"semi": [1, "always"],
"indent": [1, 2, {"SwitchCase": 1}],
"linebreak-style": [1, "unix"],
"no-extra-semi": 1,
"quotes": [1, "single", "avoid-escape"],
"valid-typeof": 1,
"semi-spacing": [1, {"before": false, "after": true}],
"brace-style": [1, "1tbs", { "allowSingleLine": true }],
"no-unused-vars": [1, {"vars": "all", "args": "none", "varsIgnorePattern": "React"}],
"curly": 1,
"object-curly-spacing": [1, "always"],
"keyword-spacing": 1,
"space-before-blocks": 1,
"no-multi-spaces": 1,
"no-multiple-empty-lines": [1, {max: 1}],
"no-spaced-func": 1,
"no-var": 1,
"prefer-const": 1,
"comma-dangle": [1, "always-multiline"],
/* Disabled */
"strict": 0,
"eqeqeq": 0,
}
}