-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathnode.js
More file actions
33 lines (33 loc) · 752 Bytes
/
node.js
File metadata and controls
33 lines (33 loc) · 752 Bytes
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
module.exports = {
extends: [
'./index.js',
].map(require.resolve),
env: {
browser: false,
node: true,
},
parserOptions: {
sourceType: 'script',
ecmaFeatures: {
impliedStrict: true,
},
},
rules: {
'callback-return': ['error', ['cb', 'callback', 'next', 'done']],
'global-require': 'error',
'handle-callback-err': 'error',
'no-buffer-constructor': 'error',
'no-mixed-requires': 'off',
'no-new-require': 'error',
'no-nonoctal-decimal-escape': 'error',
'no-path-concat': 'error',
'no-process-env': 'error',
'no-process-exit': 'error',
'no-restricted-modules': 'off',
'no-restricted-properties': 'off',
'no-sync': ['warn', {
allowAtRootLevel: false,
}],
'no-unsafe-optional-chaining': 'error',
},
};