README
@putout/plugin-remove-boolean-from-assertions
putout
plugin adds ability to remove boolean
from assertions
. Renamed to @putout/plugin-remove-boolean-to-assertionss.
Install
npm i @putout/plugin-remove-boolean-from-assertions
Rule
{
"rules": {
"remove-boolean-from-assertions": "on"
}
}
❌ Incorrect code example
if (a === true)
alert();
✅ Correct code Example
if (a)
alert();
License
MIT