0.1.0 • Published 8 years ago

eslint-plugin-node-globals v0.1.0

Weekly downloads
9
License
ISC
Repository
github
Last release
8 years ago

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.