-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
56 lines (56 loc) · 1.72 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
{
"env": {
"node": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 6
},
"rules": {
"indent": [2, "tab", { "SwitchCase": 1 }],
"brace-style": ["error", "1tbs"],
"quotes": ["error", "double"],
"semi": "error",
"no-eval": "error",
"eol-last": "error",
"no-redeclare": "error",
"no-extra-bind": "error",
"no-process-exit": "error",
"no-inner-declarations": "warn",
"no-loop-func": "warn",
"no-undef": "error",
"no-trailing-spaces": "error",
"space-before-function-paren": ["error", "never"],
"no-multi-spaces": "error",
"space-in-parens": "error",
"space-before-blocks": "error",
"no-unused-vars": "error",
"no-dupe-keys": "error",
"valid-typeof": "error",
"object-curly-spacing": ["error", "always"],
"key-spacing": "error",
"space-infix-ops": "error",
"no-negated-in-lhs": "error",
"no-octal": "error",
"no-regex-spaces": "error",
"no-self-assign": "error",
"no-sparse-arrays": "error",
"no-unexpected-multiline": "error",
"no-unreachable": "error",
"no-extra-semi": "error",
"no-func-assign": "error",
"no-invalid-regexp": "error",
"keyword-spacing": ["error", {
"after": false,
"overrides": {
"try": {"after": true},
"else": {"after": true},
"throw": {"after": true},
"case": {"after": true},
"return": {"after": true},
"finally": {"after": true},
"do": {"after": true}
}
}]
}
}