-
Notifications
You must be signed in to change notification settings - Fork 77
/
.eslintrc
executable file
·43 lines (43 loc) · 1.17 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
{
"parserOptions": {
"ecmaVersion": 6
},
"env": {
"node": true,
"es6": true,
"mocha": true
},
"extends": [
"standard"
],
"plugins": [
"chai-friendly"
],
"rules": {
"indent": ["error", "tab"],
"no-tabs": 0,
"brace-style": ["error", "stroustrup"],
"arrow-parens": ["error", "always"],
"no-control-regex": 0,
"no-useless-escape": 0,
"array-bracket-spacing": ["error", "never"],
"object-curly-spacing": ["error", "always"],
"lines-between-class-members": ["error", "always"],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "multiline-block-like" },
{ "blankLine": "always", "prev": "multiline-block-like", "next": "*" },
{ "blankLine": "always", "prev": "multiline-expression", "next": "*" },
{ "blankLine": "always", "prev": "*", "next": "multiline-expression" },
{ "blankLine": "always", "prev": "*", "next": "return" }
],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "always",
"asyncArrow": "always"
}],
"standard/no-callback-literal": 1,
"no-unused-expressions": 0,
"chai-friendly/no-unused-expressions": 2
}
}