0.0.7 • Published 11 months ago

eslint-plugin-no-boolean-ts-pattern v0.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

eslint-plugin-no-boolean-ts-pattern

recommend ternary expression over pattern matching boolean values

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-no-boolean-ts-pattern:

npm install eslint-plugin-no-boolean-ts-pattern --save-dev

Usage

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

{
    "plugins": [
        "no-boolean-ts-pattern"
    ]
}

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

{
    "rules": {
        "no-boolean-ts-pattern/rule-name": 2
    }
}

Rules

TODO: Run eslint-doc-generator to generate the rules list.

0.0.7

11 months ago

0.1.0

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago

0.0.0

11 months ago