-
Notifications
You must be signed in to change notification settings - Fork 32
/
.eslintrc
73 lines (73 loc) · 2.27 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
{
"parserOptions": {
"ecmaVersion": 2017
},
"rules": {
"max-len": ["error", 80],
"standard/computed-property-even-spacing": 0,
"handle-callback-err": 0,
"no-tabs": "error",
"block-spacing": "error",
"space-before-blocks": "error",
"keyword-spacing": "error",
"no-unused-expressions": "error",
"no-unneeded-ternary": "error",
"new-parens": "error",
"camelcase": "error",
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": "error",
"comma-style": "error",
"curly": ["error", "multi-line"],
"no-useless-escape": "error",
"no-var": "error",
"no-return-assign": "error",
"eol-last": "error",
"no-useless-constructor": "error",
"no-unreachable": "error",
"space-infix-ops": "error",
"no-trailing-spaces": "error",
"prefer-arrow-callback": "error",
"quotes": ["error", "single", { "avoidEscape": true }],
"operator-linebreak": ["error", "after"],
"prefer-const": "error",
"no-unused-vars": ["error", { "vars": "local", "args": "none" }],
"semi": "error",
"eqeqeq": 0,
"indent": ["error", 2, {
"SwitchCase": 1,
"VariableDeclarator": 2,
"MemberExpression": 2,
"FunctionDeclaration": {
"parameters": 2
},
"FunctionExpression": {
"parameters": 2
},
"CallExpression": {
"arguments": 2
},
"ImportDeclaration": 2
}],
"dot-location": ["error", "property"],
"key-spacing": "error",
"no-multiple-empty-lines": "error",
"object-shorthand": "error",
"arrow-parens": ["error", "as-needed"],
"arrow-body-style": ["error", "as-needed"],
"space-before-function-paren": ["error", "never"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"constructor-super": "error",
"generator-star-spacing": ["error", { "before": true, "after": true }],
"no-class-assign": "error",
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-new-symbol": "error",
"no-this-before-super": "error",
"prefer-reflect": [0, { "exceptions": [] }],
"prefer-rest-params": 0,
"prefer-spread": 0,
"require-yield": 2,
"template-curly-spacing": ["error", "never"],
"yield-star-spacing": ["error", { "before": true, "after": true }]
}
}