eslint-plugin-node-globals

0.1.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i eslint-plugin-node-globals

Weekly Downloads

148

Version

0.1.0

License

ISC

Last publish

Collaborators

  • novemberborn