{"name":"@putout/plugin-remove-duplicate-case","version":"3.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 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://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/test":"^7.0.0","c8":"^8.0.0","eslint":"^8.0.1","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^18.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=30"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"ed7929903ac0a619788a8de94c64a61a668b4f5a","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-duplicate-case@3.0.0","_nodeVersion":"20.4.0","_npmVersion":"9.6.6","dist":{"integrity":"sha512-NLj45ob0RDk///SNTo3h+rJGbK3l22RkkRih2e7xg7ky6fKMtBCuMk0IYI8/mNNDR0Xm6UKwvBC9nFzqp9stTw==","shasum":"a020e8c2cf4d9310a322cd4b78ca601e4837b51c","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-duplicate-case/download/@putout/plugin-remove-duplicate-case-3.0.0.tgz","fileCount":4,"unpackedSize":4415,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDu4pWZ7vIVpdL/0KwbJQ+c0nqk5ceFU++x3vniEgUKoAIhAOadW9AsCRrKSKneU03VVoyzq0NzjVWVRIRje/qqLvsY"}],"size":2109,"noattachment":false,"key":"/@putout/plugin-remove-duplicate-case/-/@putout/plugin-remove-duplicate-case-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","tmp":"tmp/plugin-remove-duplicate-case_3.0.0_1689184343849_0.2179823549421589"},"_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":1689184344031,"_cnpm_publish_time":1689184344031,"dist-tags":{"latest":"5.0.0"}}