forked from MetaMask/metamask-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.node.js
More file actions
31 lines (29 loc) 路 1.12 KB
/
Copy path.eslintrc.node.js
File metadata and controls
31 lines (29 loc) 路 1.12 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
28
29
30
31
const nodeConfig = require('@metamask/eslint-config-nodejs').default;
module.exports = [
...nodeConfig,
{
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',
},
},
];