0.0.1 • Published 7 years ago

eslint-plugin-no-debug-enabled v0.0.1

Weekly downloads
27
License
ISC
Repository
-
Last release
7 years ago

eslint-plugin-no-debug-enabled

Ensure you don't have debug enabled!

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-no-debug-enabled:

$ npm install eslint-plugin-no-debug-enabled --save-dev

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

Usage

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

{
    "plugins": [
        "eslint-no-debug-enabled"
    ]
}

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

{
    "rules": {
        "eslint-no-debug-enabled": [["debugpkg", "otherdebug"]]
    }
}