0.0.2 • Published 5 years ago
eslint-plugin-process-env v0.0.2
eslint-plugin-process-env
process.env specific linting rules for ESLint.
Installation
Install ESLint either locally or globally.
$ npm install eslintIf you installed ESLint globally, you have to install the plugin globally too. Otherwise, install it locally.
$ npm install eslint-plugin-process-envConfiguration
Add a plugins section and specify eslint-plugin-process-env as a plugin.
Then, enable all of the rules that you would like to use.
List of provided rules
Rules are divided into categories for your convenience. All rules are off by default, unless you use one of the plugin's configurations which turn all relevant rules on.
Stylistic Issues
These rules are purely matters of style and are quite subjective.
- restrict-process-env: Configure whiteList & blackList for
process.env. - no-computed-process-env: Disallow computed
process.env[xxx].
Contributing
Contributions are always welcome!.