$ npm 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
break
orcontinue
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.
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
© 2010 - cnpmjs.org x YWFE | Home | YWFE