@putout/plugin-remove-boolean-from-assertions
boolean
from assertions
. Merged to @putout/plugin-conditions
.
Install
npm i @putout/plugin-remove-boolean-from-assertions
Rule
{
"rules": {
"remove-boolean-from-assertions": "on"
}
}
❌ Example of incorrect code
if (a === true)
alert();
✅ Example of correct code
if (a)
alert();
License
MIT