{"name":"@putout/plugin-remove-duplicate-keys","version":"8.1.0","keywords":["putout","putout-plugin","putout-plugin-remove","plugin","duplicate","key"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-duplicate-keys@8.1.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-duplicate-keys#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"f679da7b0038ba8c12df3912806440e6e04359da","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-duplicate-keys/download/@putout/plugin-remove-duplicate-keys-8.1.0.tgz","fileCount":4,"integrity":"sha512-DnDEdK8o2zUXdLYMDzZLMnJyQmjCg48RcjAhm/QVVAw8loLQyym7pYjsiqB2B7cQFMMqeHqeA4Q/qab/bLrvqQ==","signatures":[{"sig":"MEQCIBr5cKMKf3OheuUOFmUmKTrR+rSCQ6Ix3TFY+oVCB8AzAiA4knBUbOiCTQIlbfTSTKEBskFEGa+tE9T3wCFXKNc8rw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7790,"size":2715,"noattachment":false,"key":"/@putout/plugin-remove-duplicate-keys/-/@putout/plugin-remove-duplicate-keys-8.1.0.tgz"},"main":"lib/remove-duplicate-keys.js","type":"module","engines":{"node":">=20"},"gitHead":"9070145c4ce5c657eeb97534c603982017fdaafb","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"},"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 keys","directories":{},"_nodeVersion":"24.8.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^11.0.0","nodemon":"^3.0.1","@putout/test":"^14.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^3.0.0","eslint-plugin-putout":"^28.0.0"},"peerDependencies":{"putout":">=40"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-duplicate-keys_8.1.0_1761657944582_0.22390168417101486","host":"s3://npm-registry-packages-npm-production"},"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":1761657944749,"_cnpm_publish_time":1761657944749,"dist-tags":{"latest":"9.2.0"}}