{"name":"@putout/plugin-remove-duplicate-case","version":"5.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to find and remove duplicate case","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-duplicate-case#readme","main":"lib/remove-duplicate-case.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"},"casewords":["putout","putout-plugin","putout-plugin-remove","plugin","duplicate","case"],"devDependencies":{"@putout/eslint-flat":"^4.0.0","@putout/test":"^15.0.0","eslint":"^10.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^31.0.0","madrun":"^13.0.0","nodemon":"^3.0.1","superc8":"^12.0.0"},"peerDependencies":{"putout":">=42"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-remove-duplicate-case@5.0.0","gitHead":"1cded0a05a6f8b6a2c2b6a1b3645c9d3828bee50","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.9.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-qY4ba4bdvLVbyfRM/fb57iqV4IJcGGDKYNhWxRstebPNb1XX2QXCR31jBZ8ElDFWhaE95aA2s0vFaXdZcANNLA==","shasum":"5b1e261da0aac0725d94fceca026d235f3e08a6e","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-duplicate-case/download/@putout/plugin-remove-duplicate-case-5.0.0.tgz","fileCount":4,"unpackedSize":4562,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIC+PO8Yq8SXs+trUoOjUi7sSDAcnhfzRXEJBwmT8y/HLAiEA3zAACz7ZElTwqXfh+WpLsTVdONagXUC693yzenQYyxw="}],"size":2131,"noattachment":false,"key":"/@putout/plugin-remove-duplicate-case/-/@putout/plugin-remove-duplicate-case-5.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-remove-duplicate-case_5.0.0_1776210109754_0.45930343322201317"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-remove-duplicate-case [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-duplicate-case.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-duplicate-case \"npm\"\n\n> The `switch` statement evaluates an expression, matching the expression's value to a `case` clause, and executes statements associated with that `case`, as well as statements in `cases` that follow the matching `case`.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/switch)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to find and remove duplecate case.\n\n## Install\n\n```\nnpm i @putout/plugin-remove-duplicate-case\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-duplicate-case\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nswitch(x) {\ncase 5:\n    console.log('hello');\n    break;\n\ncase 5:\n    console.log('zz');\n    break;\n}\n```\n\n## ✅ Example of correct code\n\n```js\nswitch(x) {\ncase 5:\n    console.log('hello');\n    break;\n}\n```\n\n## License\n\nMIT\n","publish_time":1776210109890,"_cnpm_publish_time":1776210109890,"dist-tags":{"latest":"5.0.0"}}