0.1.0 • Published 4 years ago

eslint-config-restricted-globals v0.1.0

Weekly downloads
10
License
MIT
Repository
github
Last release
4 years ago

eslint-config-restricted-globals

Restrict global variables to prevent accidental global access. Based on this TypeScript issue.

Installation

npm install --save-dev eslint-config-restricted-globals

Usage

Place this config inside the extends section of your eslint config file.

{
  "extends": [
    ...
    # alternatively you can omit eslint-config- and just place "restricted-globals"
    "eslint-config-restricted-globals",
    ...
  ]
}

References

Based on this comment from @jahooma.