-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
30 lines (30 loc) · 1006 Bytes
/
.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
module.exports = {
extends: ['standard', 'plugin:prettier/recommended', 'plugin:node/recommended'],
globals: {},
env: {
mocha: true,
node: true,
},
plugins: ['havven', 'no-only-tests', 'promise'],
rules: {
'havven/no-assert-revert-without-await': 'error',
'havven/no-assert-invalid-opcode-without-await': 'error',
'prefer-arrow-callback': 'error',
'prefer-const': 'error',
'no-process-exit': 'off',
'standard/computed-property-even-spacing': 'off',
'no-only-tests/no-only-tests': 'error',
'promise/always-return': 'error',
'promise/no-return-wrap': 'error',
'promise/param-names': 'off',
'promise/catch-or-return': 'error',
'promise/no-native': 'off',
'promise/no-nesting': 'warn',
'promise/no-promise-in-callback': 'warn',
'promise/no-callback-in-promise': 'warn',
'promise/avoid-new': 'warn',
'promise/no-new-statics': 'error',
'promise/no-return-in-finally': 'warn',
'promise/valid-params': 'warn',
},
};