forked from handshake-org/hsd
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.cjs
50 lines (48 loc) · 846 Bytes
/
eslint.config.cjs
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
'use strict';
const rc = require('bslintrc');
module.exports = [
rc.configs.recommended,
rc.configs.bcoin,
{
languageOptions: {
globals: {
...rc.globals.node
},
ecmaVersion: 'latest'
}
},
{
files: [
'bin/cli',
'bin/hsd',
'bin/node',
'bin/hs-seeder',
'bin/node',
'bin/_seeder',
'bin/spvnode',
'bin/wallet',
'bin/hsd-cli',
'bin/hsw-cli',
'etc/genesis',
'**/*.js',
'*.js'
],
languageOptions: {
sourceType: 'commonjs'
}
},
{
files: ['test/{,**/}*.{js,cjs,mjs}'],
languageOptions: {
globals: {
...rc.globals.mocha,
register: 'readable'
}
},
rules: {
'max-len': 'off',
'prefer-arrow-callback': 'off',
'no-return-assign': 'off'
}
}
];