@putout/plugin-remove-constant-conditions 
🐊Putout plugin adds ability to find and remove constant conditions
. Merged to @putout/plugin-conditions
.
Install
npm i @putout/plugin-remove-constant-conditions -D
Rule
{
"rules": {
"remove-constant-conditions": "on"
}
}
❌ Example of incorrect code
function hi(a) {
if (2 < 3) {
console.log('hello');
console.log('world');
}
}
✅ Example of correct code
function hi(b) {
console.log('hello');
console.log('world');
}
License
MIT