File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33const jsdocPlugin = require ( 'eslint-plugin-jsdoc' )
44const eslintPluginPrettierRecommended = require ( 'eslint-plugin-prettier/recommended' )
5- const globals = require ( 'globals' )
65const neostandard = require ( 'neostandard' )
76
87module . 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 } ,
You can’t perform that action at this time.
0 commit comments