-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
58 lines (55 loc) · 1.38 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
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"modules": false
}
},
"env": {
"es6": true,
"node": true,
"browser": true
},
"rules": {
"array-bracket-spacing": [2, "never"],
"brace-style": [2, "1tbs"],
"computed-property-spacing": [2, "never"],
"consistent-this": [1, "self"],
"default-case": 2,
"eqeqeq": ["error", "allow-null"],
"func-style": [2, "declaration"],
"guard-for-in": 2,
"indent": [2, 2],
"linebreak-style": [2, "unix"],
"max-nested-callbacks": 0,
"no-console": 0,
"no-else-return": 1,
"no-eq-null": 2,
"no-floating-decimal": 2,
"no-irregular-whitespace": 2,
"no-lonely-if": 2,
"no-multi-spaces": 1,
"no-nested-ternary": 2,
"no-process-exit": 0,
"no-self-compare": 2,
"no-shadow": 1,
"no-spaced-func": 2,
"no-undef": 2,
"no-underscore-dangle": 0,
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
"one-var": [2, "never"],
"object-curly-spacing": [2, "never"],
"quotes": [1, "single", "avoid-escape"],
"radix": 2,
"semi": [2, "always"],
"semi-spacing": [2, {"before": false, "after": true}],
"keyword-spacing": ["error", {
"before": true,
"after": true
}],
"space-infix-ops": 2,
"strict": [2, "global"],
"wrap-iife": [2, "inside"]
}
}