diff --git a/packages/nodejs/rules-snapshot.json b/packages/nodejs/rules-snapshot.json index cf57a2d4..e419e661 100644 --- a/packages/nodejs/rules-snapshot.json +++ b/packages/nodejs/rules-snapshot.json @@ -1,4 +1,5 @@ { + "import/no-nodejs-modules": "off", "no-process-exit": "off", "node/callback-return": "error", "node/exports-style": "error", diff --git a/packages/nodejs/src/index.js b/packages/nodejs/src/index.js index c1a7ad67..17db7f46 100644 --- a/packages/nodejs/src/index.js +++ b/packages/nodejs/src/index.js @@ -51,5 +51,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', }, };