@putout/plugin-remove-unused-labels
🐊Putout plugin adds ability to find and remove unused 'label' statement
Last updated 4 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-remove-unused-labels 
SYNC missed versions from official npm registry.

@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

Linter Rule Fix
🐊 Putout remove-unused-labels βœ…
⏣ ESLint no-unused-labels ❌
πŸ¦• Deno no-unused-labels ❌

License

MIT

Current Tags

  • 1.0.2                                ...           latest (4 months ago)

3 Versions

  • 1.0.2                                ...           4 months ago
  • 1.0.1                                ...           4 months ago
  • 1.0.0                                ...           4 months ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE