-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
47 lines (47 loc) · 1.43 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
44
45
46
47
{
"extends": "eslint:recommended",
"plugins": ["promise"],
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"env": {
"node": true,
"es6": true
},
"rules": {
"no-empty": "off",
"no-console": "off",
"no-control-regex": "off",
"semi": "error",
"eqeqeq": ["error", "allow-null"],
"indent": ["error", 2, {"SwitchCase": 1}],
"linebreak-style": ["error", "unix"],
"no-trailing-spaces": "error",
"space-in-parens": ["error", "never"],
"array-bracket-spacing": ["error", "never"],
"object-curly-spacing": ["error", "never"],
"space-before-blocks": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"max-len": ["error", 120, 2, {"ignoreUrls": true, "ignorePattern": "\\/\\^"}],
"quotes": ["error", "single", "avoid-escape"],
"curly": ["error", "all"],
"eol-last": "error",
"no-with": "error",
"no-async-promise-executor": "error",
"require-await": "error",
"require-atomic-updates": "error",
"no-return-await": "error",
"prefer-const": "error",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/catch-or-return": "error",
"promise/no-nesting": "error",
"promise/no-promise-in-callback": "error",
"promise/no-new-statics": "error",
"promise/no-return-in-finally": "error",
"promise/valid-params": "error",
"promise/prefer-await-to-then": "error"
}
}