Package: wnpp Severity: wishlist * Package name : node-eslint-restricted-globals Version : 0.0.1 Upstream Author : Siddharth "sidoshi" Doshi <ad...@sid.sh> * URL : https://notabug.org/themusicgod1/eslint-restricted-globals * License : MIT Programming Lang: javascript Description : A list of confusing globals that should be restricted to be used as globals
Some global variables in browser are likely to be used by people without the intent of using them as globals, such as status, name etc. And because eslint ( #743404 ) thinks of them as valid global variables, it does not warn in case of bugs. node-eslint-restricted-globals blacklists confusing globals which are exported from this package. It contains the list of variables that we think should not be used without a 'window' qualifier. But as this is just a javascript array you can add, remove variables or even make your own list of variables. There's significant(more than 100 separate NPM packages) work that has been built on top of node-eslint-restricted-globals in particular, some dependencies of 'node-babel-preset-es2016-node5' ( #908765 ).