-
Notifications
You must be signed in to change notification settings - Fork 0
/
node-module.js
48 lines (47 loc) · 1.07 KB
/
node-module.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
/**
* @license Codistica
*
* Copyright (c) 2020, Codistica and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
*/
module.exports = {
plugins: ['node'],
extends: [
'plugin:node/recommended-module'
],
globals: {
__dirname: 'readonly',
__filename: 'readonly',
module: 'readonly'
},
env: {
'shared-node-browser': false,
node: true
},
rules: {
'node/shebang': [
'error',
{
convertPath: {
'src/bin/**/*.js': ['^src/(.+?)\\.js$', 'lib/$1.js']
}
}
],
'node/no-unsupported-features/es-syntax': [
'error',
{
version: '>=10.0',
ignores: ['dynamicImport', 'modules']
}
],
'node/no-unsupported-features/node-builtins': [
'error',
{
version: '>=10.0'
}
]
}
};