@putout/plugin-remove-boolean-from-logical-expressions
A boolean is a logical data type that can have only the values
true
orfalse
.(c) MDN
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