-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-node.js
37 lines (31 loc) · 1.23 KB
/
config-node.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
module.exports = {
extends: [
'./config-base.js',
],
plugins: [
'import',
'jest',
'node',
],
env: {
node: true,
es6: true,
jest: true,
},
rules: {
// https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/file-extension-in-import.md
'node/file-extension-in-import': [2, 'always', { '.js': 'never' }],
// https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-exports-assign.md
'node/no-exports-assign': 2,
// https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-missing-import.md
'node/no-missing-import': 2,
// https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-missing-require.md
'node/no-missing-require': 2,
// https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-unsupported-features/es-builtins.md
'node/no-unsupported-features/es-builtins': 2,
// https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-unsupported-features/node-builtins.md
'node/no-unsupported-features/node-builtins': 2,
// https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-deprecated-api.md
'node/no-deprecated-api': 2,
},
};