-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc
More file actions
32 lines (32 loc) · 939 Bytes
/
.eslintrc
File metadata and controls
32 lines (32 loc) · 939 Bytes
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
{
"env": {
"es6": true,
"mocha": true,
"node": true
},
"rules": {
"brace-style": ["error", "stroustrup", { "allowSingleLine": false }],
"consistent-return": ["off"],
"comma-spacing": ["error", { "before": false, "after": true }],
"complexity": ["off"],
"indent": ["error", 2, { "SwitchCase": 1, "VariableDeclarator": 1 }],
"keyword-spacing": ["error", { "after": true }],
"max-len": ["warn", 1000],
"no-bitwise": ["off"],
"no-console": ["off"],
"no-extra-parens": ["off"],
"one-var": ["error", {
"var": "always",
"let": "always",
"const": "never"
}],
"prefer-arrow-callback": ["error", { "allowNamedFunctions": true }],
"semi": ["error", "always"],
"space-before-function-paren": ["error", "always"],
"space-infix-ops": ["error", { "int32Hint": false }],
"space-unary-ops": ["off"]
},
"parserOptions": {
"ecmaVersion": 8
}
}