$ cnpm install @putout/plugin-remove-unused-labels
A labeled statement is any statement that is prefixed with an identifier. You can jump to this label using a
breakorcontinuestatement 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.
npm i @putout/plugin-remove-unused-labels
{
"rules": {
"remove-unused-labels": "on"
}
}
hello: while (true) {
break;
}
while (true) {
break;
}
| Linter | Rule | Fix |
|---|---|---|
| ???? Putout | remove-unused-labels |
✅ |
| ⏣ ESLint | no-unused-labels |
❌ |
| ???? Deno | no-unused-labels |
❌ |
MIT
Copyright 2013 - present © cnpmjs.org | Home |