0.0.0 • Published 3 years ago
eslint-plugin-process-env-cnai v0.0.0
eslint-plugin-process-env
Prevent process.env from being used outside of the specified files.
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-process-env-cnai:
npm install eslint-plugin-process-env-cnai --save-devUsage
Add process-env to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"process-env-cnai"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"process-env-cnai/no-use-of-process-env": 'error'
}
}0.0.0
3 years ago