-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
44 lines (44 loc) · 1.04 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
{
"parserOptions": {
"ecmaVersion": 9
},
"extends": "google",
"rules": {
"no-unused-vars": 0,
"no-tabs": 0,
"one-var": 0,
"arrow-parens": ["error", "as-needed"],
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"max-len": 0,
"no-multiple-empty-lines": ["error", { "max": 1, "maxBOF": 1 }],
"padded-blocks": 0,
"curly": 0,
"object-curly-spacing": ["error", "always"],
"block-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "always"],
"prefer-template": 2,
"new-cap": 0,
"indent": [
"error", "tab", {
"CallExpression": {
"arguments": 1
},
"FunctionDeclaration": {
"body": 1,
"parameters": 2
},
"FunctionExpression": {
"body": 1,
"parameters": 2
},
"MemberExpression": 2,
"ObjectExpression": 1,
"SwitchCase": 1,
"ignoredNodes": [
"ConditionalExpression",
"VariableDeclarator"
]
}
]
}
}