-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.eslintrc-node.json
54 lines (54 loc) · 1.18 KB
/
.eslintrc-node.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
45
46
47
48
49
50
51
52
53
54
{
"plugins": [
"promise",
"lodash"
],
"globals": {
"root_path": "readonly",
"abs_path": "readonly",
"include": "readonly",
"base_dir": "readonly",
"abs_root_path": "readonly"
},
"extends": [
"./.eslintrc-base.json",
"plugin:promise/recommended",
"plugin:lodash/recommended",
"plugin:import/warnings"
],
"env": {
"node": true
},
"rules": {
"promise/always-return": "error",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/catch-or-return": "error",
"promise/no-native": "off",
"promise/no-nesting": "error",
"promise/no-promise-in-callback": "error",
"promise/no-callback-in-promise": "error",
"promise/avoid-new": "off",
"promise/no-new-statics": "error",
"promise/no-return-in-finally": "warn",
"promise/valid-params": "error",
"lodash/import-scope": [2, "method"],
"lodash/prop-shorthand": [
"error",
"never"
],
"lodash/matches-prop-shorthand": [
"error",
"never"
],
"lodash/chain-style": 2,
"lodash/prefer-lodash-method": [
2,
{
"ignoreMethods": [
"find"
]
}
]
}
}