eslint-plugin-node-globals
v0.1.0
Published
Alternative ESLint environment for use with Node.js, without deprecated globals
Downloads
1,213
Readme
eslint-plugin-node-globals
Alternative ESLint environment for use with Node.js, without deprecated globals
such as GLOBAL
and root
. Useful when you've enabled the
no-shadow
rule and you find that you
can no longer use root
as a variable name.
Installation
$ npm install --save-dev eslint-plugin-node-globals
Usage
In your ESLint config, load the plugin, disable the node
environment, and
enable the node-globals/env
environment:
{
"env": {
"node": false,
"node-globals/env": true
},
"plugins": ["node-globals"]
}
Semantic versioning
Addition or removal of a global is considered a breaking change.