-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
72 lines (72 loc) · 2.15 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
{
"env": {
"node": true,
"es6": true
},
"globals": {
"describe": true,
"test": true,
"expect": true
},
"parserOptions": {
"ecmaVersion": 2017
},
"rules": {
"semi": ["error", "always"],
"no-extra-semi": "error",
"arrow-spacing" : "error",
"no-unused-vars": "error",
"prefer-const": "error",
"comma-style": ["error", "last"],
"comma-dangle": "error",
"id-length": "error",
"no-trailing-spaces": "error",
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"func-call-spacing": "error",
"computed-property-spacing": "error",
"quotes": ["error", "single"],
"semi-spacing": ["error"],
"no-unreachable": "error",
"no-const-assign": "error",
"no-var": "error",
"object-shorthand": "error",
"quote-props": ["error", "as-needed"],
"prefer-destructuring": "error",
"prefer-template": "error",
"template-curly-spacing": "error",
"prefer-rest-params": "error",
"space-before-function-paren": ["error", "never"],
"space-before-blocks": "error",
"no-undef": "error",
"one-var": ["error", "never"],
"nonblock-statement-body-position": "error",
"brace-style": ["error", "1tbs"],
"no-else-return": "error",
"spaced-comment": "error",
"indent": ["error", 2, { "SwitchCase": 1 }],
"keyword-spacing": "error",
"space-infix-ops": "error",
"eol-last": "error",
"padded-blocks": ["error", "never"],
"space-in-parens": "error",
"array-bracket-spacing": ["error", "never"],
"object-curly-spacing": ["error", "always"],
"block-spacing": "error",
"comma-spacing": "error",
"no-multiple-empty-lines": ["error", { "max": 1 }],
"camelcase": "error",
"no-multi-spaces": "error",
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 2 }],
"no-shadow-restricted-names": "error",
"global-require": "error",
"no-mixed-requires": "error",
"max-len": ["error", {
"code": 80,
"ignoreUrls": true,
"ignoreTemplateLiterals": true
}],
"no-cond-assign": ["error", "always"],
"no-duplicate-case": "error",
"no-duplicate-imports": "error"
}
}