-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
48 lines (48 loc) · 1.16 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
47
48
module.exports = {
env: {
commonjs: true,
es6: true,
node: true
},
extends: ['airbnb-base', 'plugin:node/recommended'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parserOptions: {
ecmaVersion: 2018
},
plugins: ['promise'],
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/no-return-in-finally': 'error',
'prefer-arrow-callback': 'error',
'no-use-before-define': ['error', {
functions: false
}],
'no-plusplus': ['error', {
allowForLoopAfterthoughts: true
}],
'no-else-return': ['error', {
allowElseIf: true
}],
'no-underscore-dangle': ['error', {
allowAfterThis: true
}],
'eqeqeq': 'off',
'comma-dangle': 'off',
'semi': 'off',
'linebreak-style': [0, 'windows'],
'no-use-before-define': ['error', {
'functions': false
}],
'no-var': 'off'
}
}