-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
46 lines (46 loc) · 1.03 KB
/
.eslintrc.js
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
module.exports = {
extends: 'airbnb-base',
plugins: [],
globals: {
_: false,
config: false,
Constants: false,
Errors: false,
ExecuteCmdService: false,
HookService: false,
IpInfoService: false,
logger: false,
MailSendService: false,
mKoa: false,
Mixed: false,
Promise: false,
Webhook: false,
UtilService: false,
},
rules: {
'arrow-body-style': ['error', 'always'],
'brace-style': ['error', 'stroustrup'],
'comma-dangle': ['error', {
arrays: 'only-multiline',
objects: 'only-multiline',
imports: 'only-multiline',
exports: 'only-multiline',
functions: 'never',
}],
'no-param-reassign': ['error', {
props: false,
}],
'no-underscore-dangle': ['error', {
allow: ['_id'],
}],
'no-use-before-define': ['error', {
functions: false,
}],
'prefer-const': ['off'],
'space-before-function-paren': ['error', {
anonymous: 'always',
named: 'never',
asyncArrow: 'ignore',
}],
},
};