From e2cfd2bc5ada5ef8974c041cdd853a80de3af73c Mon Sep 17 00:00:00 2001 From: Alan Cruikshanks Date: Mon, 30 Dec 2024 18:12:16 +0000 Subject: [PATCH] Fix ESLint issue with globals Looks like we were piggy backing on a dependency Hapi lab or something it was using was brining in! --- eslint.config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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' },