$ npm install @putout/plugin-remove-boolean-from-assertions
🐊Putout plugin adds ability to remove boolean
from assertions
. Merged to @putout/plugin-conditions
.
npm i @putout/plugin-remove-boolean-from-assertions
{
"rules": {
"remove-boolean-from-assertions": "on"
}
}
if (a === true)
alert();
if (a)
alert();
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE