-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
66 lines (66 loc) · 1.93 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
{
"extends": [
"eslint:recommended",
"prettier"
],
"env": {
"es6": true,
"jest": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"legacyDecorators": true
},
"sourceType": "module",
},
"rules": {
"array-callback-return": "error",
"arrow-parens": ["error", "always"],
"arrow-spacing": "error",
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"constructor-super": "error",
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
"key-spacing": ["warn", { "beforeColon": false, "afterColon": true }],
"keyword-spacing": ["warn", { "before": true }],
"new-parens": "warn",
"no-class-assign": "error",
"no-control-regex": 0,
"no-debugger": "warn",
"no-dupe-class-members": "error",
"no-duplicate-imports": "error",
"no-lonely-if": "warn",
"no-new-object": "warn",
"no-new-symbol": "error",
"no-spaced-func": "warn",
"no-this-before-super": "error",
"no-trailing-spaces": "warn",
"no-undef": ["error", { "typeof": true }],
"no-unneeded-ternary": "warn",
"no-unused-vars": ["error", { "args": "after-used" }],
"no-useless-call": "warn",
"no-useless-computed-key": "warn",
"no-useless-constructor": "warn",
"no-useless-escape": 0,
"no-useless-rename": "error",
"no-var": "error",
"no-whitespace-before-property": "warn",
"one-var": ["warn", "never"],
"prefer-const": "error",
"quote-props": ["warn", "as-needed"],
"rest-spread-spacing": ["error", "never"],
"semi": ["error", "always"], //require or disallow use of semicolons instead of ASI (fixable)
"semi-spacing": "warn",
"space-before-blocks": "warn",
"space-before-function-paren": ["warn", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"space-infix-ops": "warn",
}
}