4.0.2 β’ Published 2 years ago
@putout/plugin-remove-boolean-from-logical-expressions v4.0.2
@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