Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-node-globals

novemberborn1.4kISC0.1.0

Alternative ESLint environment for use with Node.js, without deprecated globals

eslint, eslintplugin

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.