@putout/plugin-remove-useless-break
v1.0.2
Published
šPutout plugin adds ability to remove useless 'break'
Downloads
7
Maintainers
Readme
@putout/plugin-remove-useless-break
The
break
statement terminates the current loop or switch statement and transfers program control to the statement following the terminated statement.(c) MDN
šPutout plugin adds ability to remove useless break
. Checkout in šPutout Editor.
Install
npm i @putout/plugin-remove-useless-break
Rule
{
"rules": {
"remove-useless-break": "on"
}
}
ā Example of incorrect code
while (a) {
break;
}
ā Example of correct code
while (a) {}
License
MIT