eslint-plugin-process-env-cnai

0.0.0 • Public • Published

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-dev

Next, install eslint-plugin-process-env-cnai:

npm install eslint-plugin-process-env-cnai --save-dev

Usage

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'
    }
}

/eslint-plugin-process-env-cnai/

    Package Sidebar

    Install

    npm i eslint-plugin-process-env-cnai

    Weekly Downloads

    0

    Version

    0.0.0

    License

    ISC

    Unpacked Size

    6.5 kB

    Total Files

    7

    Last publish

    Collaborators

    • urim0329