README
@putout/plugin-remove-double-negations
putout
plugin adds ability to remove double negations.
Install
npm i @putout/plugin-remove-double-negations
Rule
{
"rules": {
"remove-double-negations": false
}
}
❌ Incorrect code example
if (!!a) {
console.log('hi');
}
✅ Correct code Example
if (a) {
console.log('hi');
}
License
MIT