-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Expand file tree
/
Copy path.eslintrc.node.js
More file actions
27 lines (26 loc) · 1.03 KB
/
.eslintrc.node.js
File metadata and controls
27 lines (26 loc) · 1.03 KB
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
module.exports = {
extends: ['@metamask/eslint-config-nodejs'],
rules: {
'n/no-process-env': 'off',
// eslint-plugin-n@17 started treating these browser globals as Node builtins
// and `n/hashbang` started flagging existing script headers in this repo.
// Keep prior behavior while we remain on the current shared config stack.
'n/no-unsupported-features/node-builtins': [
'error',
{
ignores: ['navigator', 'Navigator', 'localStorage'],
},
],
'n/hashbang': 'off',
// TODO: re-enable these rules
'n/no-sync': 'off',
'n/no-unpublished-import': 'off',
'n/no-unpublished-require': 'off',
// These rule modifications are removing changes to our shared ESLint config made after
// version v9. This is a temporary measure to get us to ESLint v9 compatible versions,
// at which point we can restore the intended rules and use error suppression instead.
//
// TODO: Remove these modifications after the ESLint v9 update
'no-restricted-globals': 'off',
},
};