1.0.2 β€’ Published 10 months ago

@putout/plugin-remove-unused-labels v1.0.2

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

@putout/plugin-remove-unused-labels NPM version

A labeled statement is any statement that is prefixed with an identifier. You can jump to this label using a break or continue statement nested within the labeled statement.>

(c) MDN

🐊Putout plugin adds ability to find and remove unused label statement. Merged to @putout/plugin-labels.

Checkout in 🐊Putout Editor.

Install

npm i @putout/plugin-remove-unused-labels

Rule

{
    "rules": {
        "remove-unused-labels": "on"
    }
}

❌ Example of incorrect code

hello: while (true) {
    break;
}

βœ… Example of correct code

while (true) {
    break;
}

Comparison

LinterRuleFix
🐊 Putoutremove-unused-labelsβœ…
⏣ ESLintno-unused-labels❌
πŸ¦• Denono-unused-labels❌

License

MIT

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago