-
Notifications
You must be signed in to change notification settings - Fork 3
/
eslintrc.json
79 lines (79 loc) · 1.99 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
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
75
76
77
78
79
{
"parserOptions": {
"ecmaVersion": 2019
},
"env": {
"es6": true,
"node": true
},
"rules": {
"arrow-body-style": [2, "always"],
"arrow-parens": [2, "always"],
"arrow-spacing": [2],
"comma-style": [2, "last", {
"exceptions": {
"ObjectPattern": false
}
}],
"comma-spacing": [2, { "before": false, "after": true }],
"comma-dangle": [2, "never"],
"dot-notation": [2],
"eol-last": [2],
"eqeqeq": [2, "allow-null"],
"handle-callback-err": [2, "^(err|er)$"],
"indent": ["error", 2, {
"ArrayExpression": "first",
"ObjectExpression": "first",
"FunctionExpression": {
"body": 1,
"parameters": "first"
},
"MemberExpression": 1,
"SwitchCase": 1,
"CallExpression": {
"arguments": "first"
},
"FunctionDeclaration": {
"body": 1,
"parameters": "first"
}
}],
"key-spacing": [2, {
"beforeColon": false,
"afterColon": true
}],
"keyword-spacing": 2,
"linebreak-style": ["error", "unix"],
"max-len": [2, 80, 4, { "ignoreComments": true }],
"no-async-promise-executor": [2],
"no-case-declarations": [2],
"no-multi-spaces": [2],
"no-new-object": [2],
"no-return-await": [2],
"no-tabs": [2],
"no-throw-literal": [2],
"no-trailing-spaces": [2],
"no-undef": [2],
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
"no-unreachable": [2],
"no-useless-catch": [2],
"no-useless-escape": [2],
"prefer-object-spread": [2],
"quotes": [1, "single", "avoid-escape"],
"semi": [2, "never"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"space-in-parens": [2, "never"],
"space-infix-ops": [2],
"space-unary-ops": [2],
"strict": [2, "global"],
"switch-colon-spacing": [2, {
"after": true,
"before": false
}]
}
}