@putout/plugin-remove-useless-continue
v2.0.0
Published
šPutout plugin adds ability to remove useless 'continue'
Downloads
40,602
Maintainers
Readme
@putout/plugin-remove-useless-continue
The
continue
statement terminates execution of the statements in the current iteration of loop.(c) MDN
šPutout plugin adds ability to remove useless continue
.
Install
npm i @putout/plugin-remove-useless-continue
Rule
{
"rules": {
"remove-useless-continue": "on"
}
}
ā Example of incorrect code
for (sign = decpt, i = 0; sign /= 10 !== 0; i++) {
console.log('hello');
continue;
}
ā Example of correct code
for (sign = decpt, i = 0; sign /= 10 !== 0; i++) {
console.log('hello');
}
License
MIT