2.1.0 • Published 4 years ago

eslint-plugin-code-protect v2.1.0

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

eslint-plugin-code-protect

Scan all the code, and protect the config value in the files

Installation

You'll first need to install ESLint:

$ tnpm i eslint --save-dev

Next, install eslint-plugin-code-protect:

$ tnpm install eslint-plugin-code-protect --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-code-protect globally.

Usage

Add configs_scan to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "configs_scan"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "configs_scan/rule-name": 2
    }
}

Supported Rules

  • Fill in provided rules here