{"_id":"@putout/plugin-remove-unused-labels","_rev":"4159949","name":"@putout/plugin-remove-unused-labels","description":"🐊Putout plugin adds ability to find and remove unused 'label' statement","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T20:36:56.000Z","created":"2024-08-24T10:51:25.575Z","1.0.2":"2024-08-24T15:07:48.081Z","1.0.1":"2024-08-24T10:54:07.867Z","1.0.0":"2024-08-24T10:51:25.575Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"versions":{"1.0.2":{"name":"@putout/plugin-remove-unused-labels","version":"1.0.2","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to find and remove unused 'label' statement","homepage":"https://github.com/coderaiser/putout/tree/v16.2.0/packages/plugin-remove-unused-labels#readme","main":"lib/remove-unused-labels.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","putout-plugin-remove","plugin","label"],"devDependencies":{"@putout/test":"^11.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=36"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-remove-unused-labels@1.0.2","gitHead":"4001dcfd1299bda7235a937f86f0e27c4a9b7c4c","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.7.0","_npmVersion":"10.8.2","dist":{"shasum":"405e3fe143c3e45ebb0a5e880b59ed8ca3bc5c24","size":2426,"noattachment":false,"key":"/@putout/plugin-remove-unused-labels/-/@putout/plugin-remove-unused-labels-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-remove-unused-labels/download/@putout/plugin-remove-unused-labels-1.0.2.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-remove-unused-labels_1.0.2_1724512067932_0.8725535776246931"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-24T15:07:48.081Z","publish_time":1724512068081,"_source_registry_name":"default","_cnpm_publish_time":1724512068081},"1.0.1":{"name":"@putout/plugin-remove-unused-labels","version":"1.0.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to find and remove unused 'label' statement","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-unused-labels#readme","main":"lib/remove-unused-labels.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","putout-plugin-remove","plugin","label"],"devDependencies":{"@putout/test":"^11.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=36"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-remove-unused-labels@1.0.1","gitHead":"95c5f137b56ef7c74c0da8eab2024bdad55b27aa","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.7.0","_npmVersion":"10.8.2","dist":{"shasum":"8d830b43cdbcca49b9af16dcc6fe71eb94808743","size":2328,"noattachment":false,"key":"/@putout/plugin-remove-unused-labels/-/@putout/plugin-remove-unused-labels-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-remove-unused-labels/download/@putout/plugin-remove-unused-labels-1.0.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-remove-unused-labels_1.0.1_1724496847725_0.33867361748059177"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-24T10:54:07.867Z","publish_time":1724496847867,"_source_registry_name":"default","_cnpm_publish_time":1724496847867},"1.0.0":{"name":"@putout/plugin-remove-unused-labels","version":"1.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to find and remove unused 'label' statement","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-unused-labels#readme","main":"lib/remove-unused-labels.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","putout-plugin-remove","plugin","label"],"devDependencies":{"@putout/test":"^11.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=36"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-remove-unused-labels@1.0.0","gitHead":"95c5f137b56ef7c74c0da8eab2024bdad55b27aa","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.7.0","_npmVersion":"10.8.2","dist":{"shasum":"dad3f85dfecc1bc53862f740c414f8be9dc4bd8c","size":2230,"noattachment":false,"key":"/@putout/plugin-remove-unused-labels/-/@putout/plugin-remove-unused-labels-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-remove-unused-labels/download/@putout/plugin-remove-unused-labels-1.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-remove-unused-labels_1.0.0_1724496685355_0.28475303503418803"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-24T10:51:25.575Z","publish_time":1724496685575,"_source_registry_name":"default","_cnpm_publish_time":1724496685575}},"readme":"# @putout/plugin-remove-unused-labels [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-unused-labels.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-unused-labels \"npm\"\n\n> 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.>\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label)\n\n????[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to find and remove unused `label` statement. Merged to [`@putout/plugin-labels`](https://www.npmjs.com/package/@putout/labels).\n\nCheckout in ????[**Putout Editor**](https://putout.cloudcmd.io/#/gist/021bf8fa6f01bcc265cebbaa19d5dffc/1833eaee02119cf1d38974157a8d010ecaed7b33).\n\n## Install\n\n```\nnpm i @putout/plugin-remove-unused-labels\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-unused-labels\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nhello: while (true) {\n    break;\n}\n```\n\n## ✅ Example of correct code\n\n```js\nwhile (true) {\n    break;\n}\n```\n\n## Comparison\n\n| Linter        | Rule                                                                                                                   | Fix |\n|---------------|------------------------------------------------------------------------------------------------------------------------|-----|\n| ???? **Putout** | [`remove-unused-labels`](https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-unused-labels#readme) | ✅   |\n| ⏣ **ESLint**  | [`no-unused-labels`](https://eslint.org/docs/rules/no-unused-labels)                                                   | ❌   |\n| ???? **Deno**   | [`no-unused-labels`](https://lint.deno.land/rules/no-unused-labels)                                                    | ❌   |\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/coderaiser/putout/tree/v16.2.0/packages/plugin-remove-unused-labels#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT"}