Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 735 Bytes

README.md

File metadata and controls

50 lines (30 loc) · 735 Bytes

eslint-plugin-exclude-strings

Checks for a list of strings that should not be included in the codebase

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-exclude-strings:

$ npm install eslint-plugin-exclude-strings --save-dev

Usage

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

{
    "plugins": [
        "exclude-strings"
    ]
}

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

{
    "rules": {
        "exclude-strings/rule-name": 2
    }
}

Supported Rules

  • Fill in provided rules here