{"name":"@putout/plugin-remove-duplicate-keys","version":"9.1.1","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 keys","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-duplicate-keys#readme","main":"lib/remove-duplicate-keys.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":{},"keywords":["putout","putout-plugin","putout-plugin-remove","plugin","duplicate","key"],"devDependencies":{"@putout/test":"^15.0.0","c8":"^10.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"},"peerDependencies":{"putout":">=42"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-remove-duplicate-keys@9.1.1","gitHead":"5e9ae7c732c95b76421ba89726032a67ee5985cb","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.6.1","_npmVersion":"11.4.2","dist":{"integrity":"sha512-lu3YdFhklii0YYwUhgrNZ1R6zgDXrWaU34wssTm6wIZfa5o3YFlFGlFWrPq7kKqdNDmTi4ru7AhTwPUvQkDLXQ==","shasum":"6cae54de4d81491e8583d23fb37ff9a66f381301","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-duplicate-keys/download/@putout/plugin-remove-duplicate-keys-9.1.1.tgz","fileCount":4,"unpackedSize":8235,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCvVh2VKw9gnht3S1IwTrHQeW953G3HcECVi0xM1pnerwIhALQFJplweBnLfLSSqBOeed5AGuOKILehjFVmVaIBxmzl"}],"size":2829,"noattachment":false,"key":"/@putout/plugin-remove-duplicate-keys/-/@putout/plugin-remove-duplicate-keys-9.1.1.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-keys_9.1.1_1771773471187_0.8720481287274238"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-remove-duplicate-keys [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-duplicate-keys.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-duplicate-keys \"npm\"\n\n> An object initializer is a comma-delimited list of zero or more pairs of property names and associated values of an object, enclosed in curly braces (`{}`).\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to find and remove duplecate keys.\n\n## Install\n\n```\nnpm i @putout/plugin-remove-duplicate-keys\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-duplicate-keys\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst a = {\n    x: 'hello',\n    ...z,\n    x: 'world',\n};\n```\n\n## ✅ Example of correct code\n\n```js\nconst a = {\n    ...z,\n    x: 'world',\n};\n```\n\n> SyntaxError: Duplicate parameter name not allowed in this context\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Duplicate_parameter)\n\nArgument name clash:\n\n```diff\n-const a = ({b, b, ...c}) => {};\n+const a = ({b, ...c}) => {};\n```\n\n## License\n\nMIT\n","publish_time":1771773471351,"_cnpm_publish_time":1771773471351,"dist-tags":{"latest":"9.2.0"}}