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-dev
Next, install eslint-plugin-no-unnecessary-boolean-cast
:
$ npm install eslint-plugin-no-unnecessary-boolean-cast --save-dev
Note: 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:
Then configure the rules you want to use under the rules section.
Supported Rules
- Fill in provided rules here