diff --git a/eslint.config.js b/eslint.config.js index e5620ca2c6..894deb7ac2 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -2,7 +2,6 @@ const jsdocPlugin = require('eslint-plugin-jsdoc') const eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended') -const globals = require('globals') const neostandard = require('neostandard') module.exports = [ @@ -26,9 +25,11 @@ module.exports = [ languageOptions: { ecmaVersion: 'latest', // Needed so ESlint knows it is checking Node code. For example, without it all uses of `console.log()` and - // `process.env()` would be flagged by the 'no-undef' rule + // `process.env()` would be flagged by the 'no-undef' rule. + // The source for how to set this we took from https://github.com/sindresorhus/globals/blob/main/globals.json globals: { - ...globals.node + console: false, + process: false }, sourceType: 'commonjs' },