-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
67 lines (67 loc) · 1.9 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
{
"env": {
"node": true
},
"extends": "eslint:recommended",
"rules": {
"brace-style": [2, "1tbs", { allowSingleLine: true }],
"camelcase": [2, { properties: "never" }],
"comma-dangle": [ 2, "never" ],
"comma-spacing": [2, { "before": false, "after": true }],
"consistent-return": 2,
"curly": [2, "multi-line"],
"default-case": 2,
"eol-last": 2,
"eqeqeq": 2,
"indent": [2, 2, { "SwitchCase": 1 }],
"keyword-spacing": [2, {
"before": true,
"after": true,
"overrides": {
"return": { "after": true },
"throw": { "after": true },
"case": { "after": true }
}
}],
"new-cap": [2, { "newIsCap": true }],
"no-case-declarations": 2,
"no-alert": 1,
"no-console": 1,
"no-debugger": 1,
"no-else-return": 2,
"no-extra-semi": 2,
"no-fallthrough": 2,
"no-lonely-if": 2,
"no-mixed-operators": [2, {
groups: [
["+", "-", "*", "/", "%", "**"],
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"]
],
allowSamePrecedence: false
}],
"no-mixed-spaces-and-tabs": 2,
"no-multiple-empty-lines": [2, { "max": 2, "maxEOF": 1 }],
"no-nested-ternary": 2,
"no-param-reassign": [2, { "props": false }],
"no-return-assign": 2,
"no-shadow": 2,
"no-trailing-spaces": 2,
"no-undef": 2,
"no-unused-vars": 2,
"no-use-before-define": 2,
"object-curly-spacing": [2, "always"],
"one-var": [2, "never"],
"quote-props": [2, "as-needed", { "keywords": false, "unnecessary": true, "numbers": false }],
"quotes": [2, "single"],
"semi": 2,
"semi-spacing": 2,
"space-before-function-paren": [2, { anonymous: "never", named: "never" }],
"space-infix-ops": 2,
"space-in-parens": 2,
"spaced-comment": [2, "always"],
"strict": 2
}
}