This repository has been archived by the owner on Mar 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
74 lines (74 loc) · 1.75 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
74
{
"env": {
"browser": true,
"node": true,
"es6": true,
"mocha": true
},
"extends": [
"eslint:recommended"
],
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"modules": true,
"experimentalObjectRestSpread": true
},
"ecmaVersion": 2017
},
"rules": {
"array-bracket-spacing": 2,
"arrow-parens": 2,
"arrow-spacing": 2,
"brace-style": 2,
"block-spacing": 2,
"comma-spacing": 2,
"comma-style": 2,
"computed-property-spacing": 2,
"curly": [2, "all"],
"eqeqeq": 2,
"func-call-spacing": 2,
"indent": ["error", 2, { "SwitchCase": 1 }],
"key-spacing": 2,
"keyword-spacing": 2,
"max-statements-per-line": 2,
"newline-after-var": 2,
"newline-before-return": 2,
"no-alert": 2,
"no-array-constructor": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multi-spaces": ["error", {
"exceptions": {
"VariableDeclarator": true
}
}],
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-new-object": 2,
"no-return-assign": 2,
"no-unneeded-ternary": 2,
"no-unused-vars": 1,
"no-var": 1,
"no-whitespace-before-property": 2,
"object-curly-spacing": [2, "always"],
"object-shorthand": [2, "always"],
"one-var": [2, "never"],
"padded-blocks": ["error", {
"blocks": "never",
"classes": "never",
"switches": "never"
}],
"prefer-arrow-callback": 1,
"prefer-const": 2,
"prefer-spread": 1,
"prefer-template": 2,
"quote-props": [2, "as-needed"],
"quotes": [2, "single"],
"semi": 2,
"space-before-blocks": 2,
"space-before-function-paren": 2,
"space-in-parens": 2,
"space-infix-ops": 2,
"space-unary-ops": 2,
"spaced-comment": 2
}
}