-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
48 lines (48 loc) · 1.41 KB
/
.eslintrc.json
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
{
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8
},
"plugins": ["json"],
"rules": {
"indent": ["warn", 4],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"no-else-return": ["error"],
"no-invalid-this": ["error"],
"no-return-await": ["error"],
"require-await": ["error"],
"array-bracket-spacing": ["warn", "never"],
"array-bracket-newline": ["warn"],
"brace-style": ["warn", "1tbs"],
"block-spacing": ["warn", "always"],
"comma-dangle": ["warn", "only-multiline"],
"comma-spacing": ["warn"],
"key-spacing": ["warn"],
"keyword-spacing": ["warn"],
"new-parens": ["error"],
"no-lonely-if": ["error"],
"no-multiple-empty-lines": ["warn"],
"padding-line-between-statements": [
"warn",
{ "blankLine": "always", "prev": "*", "next": "function" },
{ "blankLine": "always", "prev": "*", "next": "return" }
],
"padded-blocks": ["warn", { "classes": "always" }],
"no-multi-spaces": ["warn"],
"no-trailing-spaces": ["warn"],
"no-unneeded-ternary": ["warn"],
"object-curly-newline": ["warn"],
"object-curly-spacing": ["warn", "always"],
"space-infix-ops": ["warn"],
"space-unary-ops": [2],
"no-useless-constructor": ["error"],
"no-var": ["error"],
"prefer-const": ["error"],
"prefer-rest-params": ["error"]
}
}