Skip to content

Commit e2cfd2b

Browse files
committed
Fix ESLint issue with globals
Looks like we were piggy backing on a dependency Hapi lab or something it was using was brining in!
1 parent 9922a65 commit e2cfd2b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

eslint.config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
const jsdocPlugin = require('eslint-plugin-jsdoc')
44
const eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended')
5-
const globals = require('globals')
65
const neostandard = require('neostandard')
76

87
module.exports = [
@@ -26,9 +25,11 @@ module.exports = [
2625
languageOptions: {
2726
ecmaVersion: 'latest',
2827
// Needed so ESlint knows it is checking Node code. For example, without it all uses of `console.log()` and
29-
// `process.env()` would be flagged by the 'no-undef' rule
28+
// `process.env()` would be flagged by the 'no-undef' rule.
29+
// The source for how to set this we took from https://github.com/sindresorhus/globals/blob/main/globals.json
3030
globals: {
31-
...globals.node
31+
console: false,
32+
process: false
3233
},
3334
sourceType: 'commonjs'
3435
},

0 commit comments

Comments
 (0)