{"name":"@putout/plugin-labels","version":"3.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin helps with labels","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-labels#readme","main":"lib/index.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://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":{"fullstore":"^4.0.0"},"keywords":["putout","putout-plugin","plugin","labels"],"devDependencies":{"@putout/test":"^15.0.0","c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^30.0.0","madrun":"^12.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=41"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-labels@3.0.0","gitHead":"5ec4b4b9034e4e63e6cada8c481f40840dd750fb","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.5.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-11xTz9bVW8a+4Y6OhFp/k+mZgS6GBJ5AuZxJRDRuAaE4O2svc45eypGN2J1BF8Fzt++31MaHOKe97ENFBnY+sw==","shasum":"f210062179d87ddd6598a570b49598631422d9e8","tarball":"http://registry-npm.ywwl.com/@putout/plugin-labels/download/@putout/plugin-labels-3.0.0.tgz","fileCount":6,"unpackedSize":7797,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCzvGDz1brSrapf3SO6PnpDBhODbW8qNihqd3YLJGhH0QIgVpiHxRH0RFviz9+ViAXFGZGmiFdH0IubzkLmgn8XsLo="}],"size":3213,"noattachment":false,"key":"/@putout/plugin-labels/-/@putout/plugin-labels-3.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-npm-production","tmp":"tmp/plugin-labels_3.0.0_1769632890805_0.6254781437026351"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-labels [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-labels.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-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.\n\n## Install\n\n```\nnpm i @putout/plugin-labels -D\n```\n\n## Rules\n\n- ✅ [add-missing-async](#add-missing-async);\n- ✅ [remove-unused](#remove-unused);\n\n## Config\n\n```json\n{\n    \"rules\": {\n        \"labels/convert-to-object\": \"on\",\n        \"labels/remove-unused\": \"on\"\n    }\n}\n```\n\n☝️ If you want to override any of it, update `.putout.json` in the directory near your files.\n\n[🦉 Configuration](https://github.com/coderaiser/putout#-configuration) section of 🐊**Putout** documentation tell you more about all configuration options supported.\n\n## convert-to-object\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/86e2915cc2cffb6c26dd3bc2f2379a71/605562cf1fdf77a7918792955601e6767a805050).\n\n### ❌ Example of incorrect code\n\n```js\nconst a = () => {\n    hello: 'world';\n    x: 'm';\n};\n```\n\n### ✅ Example of correct code\n\n```js\nconst a = () => ({\n    hello: 'world',\n    x: 'm',\n});\n```\n\n## remove-unused\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/021bf8fa6f01bcc265cebbaa19d5dffc/1833eaee02119cf1d38974157a8d010ecaed7b33).\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","publish_time":1769632890958,"_cnpm_publish_time":1769632890958,"dist-tags":{"latest":"3.0.0"}}