1.0.3 • Published 2 years ago
@putout/plugin-remove-boolean-from-assertion v1.0.3
@putout/plugin-remove-boolean-from-assertion
putout
plugin adds ability to remove boolean
from assertion
. Renamed to @putout/plugin-remove-boolean-from-assertions.
Install
npm i @putout/plugin-remove-boolean-from-assertion
Rule
{
"rules": {
"remove-boolean-from-assertion": "on"
}
}
❌ Incorrect code example
if (a === true)
alert();
✅ Correct code Example
if (a)
alert();
License
MIT