node
Adds Node.js global variables to your ESLint environment.
Globals included
Section titled “Globals included”processBuffer__dirname/__filenamefetch,Headers,Request,ResponseURL,URLSearchParamssetTimeout,setInterval,setImmediateconsole- And more from the
globalspackage
Default file patterns
Section titled “Default file patterns”["src/**/*.{js,mjs,cjs}"]Options
Section titled “Options”uglify({ with: ["node"], options: { node: { files: ["src/**/*.js", "scripts/**/*.js"], ignores: ["src/client/**"], additionalGlobals: { MY_GLOBAL: "readonly", }, }, },})Array of glob patterns for files this config applies to.
ignores
Section titled “ignores”Array of glob patterns for files to exclude.
additionalGlobals
Section titled “additionalGlobals”Extra global variables to add on top of the Node.js defaults.