@putout/plugin-remove-boolean-from-logical-expressions
v4.0.2
Published
šPutout plugin adds ability to find and remove test.boolean-from-logical-expressions calls
Downloads
36,552
Maintainers
Readme
@putout/plugin-remove-boolean-from-logical-expressions
A boolean is a logical data type that can have only the values
true
orfalse
.(c) MDN
šPutout plugin adds ability to find and remove boolean from logical expressions. Merged to @putout/plugin-logical-expressions.
Install
npm i @putout/plugin-remove-boolean-from-logical-expressions -D
Rule
{
"rules": {
"remove-boolean-from-logical-expressions": "on"
}
}
ā Example of incorrect code
const t = true && false;
ā Example of correct code
const t = false;
License
MIT