{"_id":"@putout/plugin-remove-duplicate-case","_rev":"6-0dafc9dd9a9755d79900b287fed2484f","name":"@putout/plugin-remove-duplicate-case","dist-tags":{"latest":"5.0.0"},"versions":{"1.0.0":{"name":"@putout/plugin-remove-duplicate-case","version":"1.0.0","author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-duplicate-case@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"http://github.com/coderaiser/putout","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"e58f4c3cb562ee6a5545babbbecc44780effb75a","tarball":"https://registry.npmjs.org/@putout/plugin-remove-duplicate-case/-/plugin-remove-duplicate-case-1.0.0.tgz","fileCount":4,"integrity":"sha512-OARyVlNTBFmsHAtKAR7pQQ/6Dsf6Qfenu74luaGji3EPmBvAQkprxUQfomr5umLfUJKk0Zwvh68c0INxh/VHQQ==","signatures":[{"sig":"MEUCIQDWq35qzTE2ikCeXMwfDxOCuy6MgY15cBDCl9FYYuYBigIgOVm9w6z1gfbPYblmJ+qZ960c76P8lN7ZFn8dlS4mibU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4246,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVjGaCRA9TVsSAnZWagAA9DMQAJm17VBHQdDaxLVY4T8G\n0h+drp4YfSDKDfQLvEJjB94r2CPXlz/E4JzUJWfywEYI49twG0Hj2li+t0z3\n0Zp97VgMHZwIIkgnSWgJrmGUBbHKmT7O1g+M1K10k35LDo22g2t0WLrjfj6H\nULDAYfzm87HptJ98ExNTTLazXkUvdZWmzWjsusfupaoOIdLa3gXK5ozqtp6x\nQ+uSnLrq163bFuiXQcWW6PW4gxnfS2yIBsWisqf+Mc0m575TX6AjtDk2xs9s\nGoNbiY/AvH4qaxb8u44J/dawtfgQJGt81hC4+chOJRRIDgcF8SYkdmWza7zJ\ntJuUGAUKiNY0tgAolPA31z9x1tE+V47UtKUQ3VREQVNYDDviiHing5SGb157\n9wmMln8L2yWOIQdRIWgkp6qnyrZ4n2743INF2zOobBEJf4zvAgJaIXDlYPvG\n5wSYRHzWiGXDvdlnzZN7zv+NScl3uZlmG7j84gKuUzpGL2FpAkCACSUiVcTE\ny6Ch9I71yXfiqD8RA3JoY/H3p/pGeE+tHUb0b/hVOd83VDytYhrwpE9IpFZi\nUi6cZAFs5x7B87xejty29Pb/T7dWiRH2Pu3sHQLPTYORltPqb0xz6bvanUkG\nhhyMrBg7KuEP8m33c6BjtqMDGKgjkQ3LxOKzsEpKhb05RW/O948sHgiyhLAi\nYAAs\r\n=CCGU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/remove-duplicate-case.js","engines":{"node":">=14"},"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://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"7.6.0","description":"putout plugin adds ability to find and remove duplicate case","directories":{},"_nodeVersion":"15.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.5.0","lerna":"^4.0.0","eslint":"^7.0.0","madrun":"^8.0.1","nodemon":"^2.0.1","@putout/test":"^3.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^7.0.0"},"peerDependencies":{"putout":">=15"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-duplicate-case_1.0.0_1616261530280_0.33984565133378175","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@putout/plugin-remove-duplicate-case","version":"2.0.0","author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-duplicate-case@2.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":"e1e36764490780d1abb099faf15bb419d8cf0d07","tarball":"https://registry.npmjs.org/@putout/plugin-remove-duplicate-case/-/plugin-remove-duplicate-case-2.0.0.tgz","fileCount":4,"integrity":"sha512-R39s4AaceZRwS032foZ9r3YlxeuHSlJM9A6Lz5G1PDuuAaXE2dXgp0ya6c3NvwMR+RpCETahnoSg9Z1LXxN71A==","signatures":[{"sig":"MEUCIQC4pQa0wgZspCGFIc5l6ZbkAhY9ijzUlCK0SxQ32noeKwIgFrCzLnmnPQeyU5K9iXFzlKCIQmwyLFNZ1golQAvP68o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4434,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiR3Q2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpugBAApFIQzKwazCMo6qDImBdanI/x7tZC+jmVZW8GONIehDVgTIo7\r\nKIUFoj1MoxKOC/MOPM3h40Oe+lEGXFb8X6C+zdRBqg9qI+Y8hKvgEi9QPVzR\r\nLX55zaAtRzcalmWhzw4Xmq9u6yQP0/7uhMEnR5irI3QcPhys6YfgifSVYE/i\r\n2cCudqiRMVq6wTSJ/1dSPsDE5NVdKgjCb+Sj9P7sSW5TwRa/QUpHsAIKpmsK\r\ndV3HOLDcWHxhiNIIqIPKx+pYD+GBbiDfs65hkWefkFrF2CopdNxvkpQgP+b9\r\nb3SYmXTwz0+kW+crE90FgWxU1Ii7Ze5xraX9tzfIL0yYiLykGAkjhaF+q6OX\r\nTvLC7LIJ6BxIjhQBhE/H2lw89Raaw9uYuSWGcbPJcBKllYApISle7QqKj08+\r\niyo2SsXwkC1ovceRMKgGcEaFPa9cw8l+oZmmbcKFyW0yPaS10qFzZJayjy7y\r\nnXku9C2MGhRJquQZ4DLhoRPoKGu4OnkiB/oJUAuwDni4PVMPFHDp4ULK2+er\r\nFHjgjYSP0O1m74xcctaAcGXsPKZrwA1o5vokT0VtRFikyM7XORf1isqCXp/k\r\nAt8bfgouA7nspWvtXi4Q0RM83Ge87ntL7k3FY+VuaoT7jiMMMRxQ1Sxy8pKQ\r\n3biV/Gl1xkaZQJDnKniwkzGUnCMoNz1W45c=\r\n=kAR6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/remove-duplicate-case.js","type":"commonjs","engines":{"node":">=16"},"gitHead":"785fe0b657cf06518fefa1fe381ba3797807afc8","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://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"8.3.0","description":"putout plugin adds ability to find and remove duplicate case","directories":{},"_nodeVersion":"16.14.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.5.0","lerna":"^4.0.0","eslint":"^8.0.1","madrun":"^9.0.0","nodemon":"^2.0.1","@putout/test":"^5.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^14.0.0"},"peerDependencies":{"putout":">=25"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-duplicate-case_2.0.0_1648849974048_0.1663360065062398","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@putout/plugin-remove-duplicate-case","version":"3.0.0","author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-duplicate-case@3.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":"a020e8c2cf4d9310a322cd4b78ca601e4837b51c","tarball":"https://registry.npmjs.org/@putout/plugin-remove-duplicate-case/-/plugin-remove-duplicate-case-3.0.0.tgz","fileCount":4,"integrity":"sha512-NLj45ob0RDk///SNTo3h+rJGbK3l22RkkRih2e7xg7ky6fKMtBCuMk0IYI8/mNNDR0Xm6UKwvBC9nFzqp9stTw==","signatures":[{"sig":"MEYCIQDu4pWZ7vIVpdL/0KwbJQ+c0nqk5ceFU++x3vniEgUKoAIhAOadW9AsCRrKSKneU03VVoyzq0NzjVWVRIRje/qqLvsY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4415},"main":"lib/remove-duplicate-case.js","type":"commonjs","engines":{"node":">=16"},"gitHead":"ed7929903ac0a619788a8de94c64a61a668b4f5a","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://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"9.6.6","description":"🐊Putout plugin adds ability to find and remove duplicate case","directories":{},"_nodeVersion":"20.4.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^8.0.0","lerna":"^6.0.1","eslint":"^8.0.1","madrun":"^9.0.0","nodemon":"^3.0.1","@putout/test":"^7.0.0","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^18.0.0"},"peerDependencies":{"putout":">=30"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-duplicate-case_3.0.0_1689184343849_0.2179823549421589","host":"s3://npm-registry-packages"}},"4.0.0":{"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":"https://registry.npmjs.org/@putout/plugin-remove-duplicate-case/-/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},"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"}},"5.0.0":{"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":"https://registry.npmjs.org/@putout/plugin-remove-duplicate-case/-/plugin-remove-duplicate-case-5.0.0.tgz","fileCount":4,"unpackedSize":4562,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIC+PO8Yq8SXs+trUoOjUi7sSDAcnhfzRXEJBwmT8y/HLAiEA3zAACz7ZElTwqXfh+WpLsTVdONagXUC693yzenQYyxw="}]},"_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}},"time":{"created":"2021-03-20T17:32:10.128Z","modified":"2026-04-14T23:41:50.021Z","1.0.0":"2021-03-20T17:32:10.539Z","2.0.0":"2022-04-01T21:52:54.255Z","3.0.0":"2023-07-12T17:52:24.031Z","4.0.0":"2026-01-28T18:45:41.976Z","5.0.0":"2026-04-14T23:41:49.890Z"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"license":"MIT","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-duplicate-case#readme","repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"description":"🐊Putout plugin adds ability to find and remove duplicate case","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"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","readmeFilename":"README.md"}