README
@putout/plugin-remove-boolean-from-logical-expression
putout
plugin adds ability to find and remove constant conditions
.
Install
npm i @putout/plugin-remove-boolean-from-logical-expression -D
Rule
{
"rules": {
"remove-boolean-from-logical-expression": "on"
}
}
❌ Incorrect code example
const t = true && false;
✅ Correct code Example
const t = false;
License
MIT