1.0.2 β€’ Published 6 months ago

@putout/plugin-remove-useless-break v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@putout/plugin-remove-useless-break NPM version

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

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago