Skip to content

Commit

Permalink
Disable import/no-nodejs-modules in Node.js config (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrtenz committed Nov 17, 2022
1 parent 700c5db commit ade6955
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/nodejs/rules-snapshot.json
@@ -1,4 +1,5 @@
{
"import/no-nodejs-modules": "off",
"no-process-exit": "off",
"no-restricted-globals": [
"error",
Expand Down
4 changes: 4 additions & 0 deletions packages/nodejs/src/index.js
Expand Up @@ -55,5 +55,9 @@ module.exports = {
// Deprecated eslint core rule, erroneously enabled by recommended Node rules
// https://eslint.org/docs/rules/no-process-exit
'no-process-exit': 'off',

// Enabled in the base config, but this should be allowed in Node.js
// projects.
'import/no-nodejs-modules': 'off',
},
};

0 comments on commit ade6955

Please sign in to comment.