@putout/plugin-remove-unused-labels
🐊Putout plugin adds ability to find and remove unused 'label' statement
Last updated 2 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (2 years ago)

3 Versions

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

Copyright 2013 - present © cnpmjs.org | Home |