File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
const jsdocPlugin = require ( 'eslint-plugin-jsdoc' )
4
4
const eslintPluginPrettierRecommended = require ( 'eslint-plugin-prettier/recommended' )
5
- const globals = require ( 'globals' )
6
5
const neostandard = require ( 'neostandard' )
7
6
8
7
module . exports = [
@@ -26,9 +25,11 @@ module.exports = [
26
25
languageOptions : {
27
26
ecmaVersion : 'latest' ,
28
27
// 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
30
30
globals : {
31
- ...globals . node
31
+ console : false ,
32
+ process : false
32
33
} ,
33
34
sourceType : 'commonjs'
34
35
} ,
You can’t perform that action at this time.
0 commit comments