{"name":"@putout/plugin-remove-duplicate-case","version":"4.0.0","author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-duplicate-case@4.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-duplicate-case#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"fcc25a3563d829069c15533408a35159d9f559d4","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-duplicate-case/download/@putout/plugin-remove-duplicate-case-4.0.0.tgz","fileCount":4,"integrity":"sha512-mBFiIGOgvZpKjYIze8BxV2OFXYOIA5+rFZhROTET6HMp03u3kgW+3obIE6592YRcAq0U7bDU820UTc6Wc/o7Uw==","signatures":[{"sig":"MEYCIQDix/Wt2rVd1xxEE7qRDuf9LizodQ8ihzPmdz+BNUQ+DgIhAJojkJXQ+5bYh6UKfQY+dqU8MfZe9WSDMvgI5G16DzNE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4420,"size":2103,"noattachment":false,"key":"/@putout/plugin-remove-duplicate-case/-/@putout/plugin-remove-duplicate-case-4.0.0.tgz"},"main":"lib/remove-duplicate-case.js","type":"module","engines":{"node":">=22"},"gitHead":"2845684205230e56e06bfc2b83b6958b86818b1c","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"casewords":["putout","putout-plugin","putout-plugin-remove","plugin","duplicate","case"],"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.4.2","description":"🐊Putout plugin adds ability to find and remove duplicate case","directories":{},"_nodeVersion":"25.3.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^10.0.0-alpha.0","madrun":"^12.0.0","nodemon":"^3.0.1","@putout/test":"^15.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^4.0.0","eslint-plugin-putout":"^30.0.0"},"peerDependencies":{"putout":">=41"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-duplicate-case_4.0.0_1769625941801_0.7517330142708818","host":"s3://npm-registry-packages-npm-production"},"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":1769625941976,"_cnpm_publish_time":1769625941976,"dist-tags":{"latest":"5.0.0"}}