0.0.1 • Published 5 years ago
eslint-plugin-no-unnecessary-boolean-cast v0.0.1
eslint-plugin-no-unnecessary-boolean-cast
Typescript eslint rule disallowing calling Boolean function cast when the result will be always the same
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-no-unnecessary-boolean-cast:
$ npm install eslint-plugin-no-unnecessary-boolean-cast --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-no-unnecessary-boolean-cast globally.
Usage
Add no-unnecessary-boolean-cast to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"no-unnecessary-boolean-cast"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"no-unnecessary-boolean-cast/rule-name": 2
}
}Supported Rules
- Fill in provided rules here