-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
executable file
·36 lines (36 loc) · 1.01 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
{
"parserOptions": {
"ecmaVersion": 2018
},
"env": {
"node": true,
"es6": true
},
"extends": [
"standard"
],
"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"
}]
}
}