{"name":"@putout/plugin-remove-useless-assign","version":"2.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless assign","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-assign#readme","main":"lib/remove-useless-assign.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","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","plugin","assign","useless"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","@putout/test":"^13.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^26.0.0","madrun":"^11.0.0"},"peerDependencies":{"putout":">=40"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-remove-useless-assign@2.0.0","gitHead":"8759f0d3345d425d06d1b13e5d2db33399f01c65","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.15.0","_npmVersion":"11.1.0","dist":{"integrity":"sha512-EZcl27KpeA1me1ymK1sxrmAFe+UHlW0qFH6bXFuCXYDkPiCXLIDuw3oBqohJhQfGSk1ENaUqtaVw7ZOTeRbwxQ==","shasum":"bea5b561325667b70d8b38e83522b7e6037e13f0","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-useless-assign/download/@putout/plugin-remove-useless-assign-2.0.0.tgz","fileCount":4,"unpackedSize":4070,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDmrdYbfA+Qckdv1ehZ3I/uShaTzS2MtwMUqy/iljC7DAIhAO3mRN7U60Fa0LdeuN6IS/L+WOC4iQH6hrar5TFu5Nyo"}],"size":2043,"noattachment":false,"key":"/@putout/plugin-remove-useless-assign/-/@putout/plugin-remove-useless-assign-2.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-npm-production","tmp":"tmp/plugin-remove-useless-assign_2.0.0_1747405145018_0.6849779721363654"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-remove-useless-assign [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-useless-assign.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-useless-assign \"npm\"\n\n> The `Object.assign()` method copies all enumerable own properties from one or more source objects to a target object. It returns the modified target object.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to remove useless `assign`.\nCheck it out in 🐊[Putout Editor](https://putout.cloudcmd.io/#/gist/04c18d7d2302e0a3cc543c7c83adeaf2/ddb38d94dcc6425fc944e3b130837739f916c7df).\n\n## Install\n\n```\nnpm i @putout/plugin-remove-useless-assign\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-useless-assign\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst load = stub().rejects(assign(Error('LOAD USED')));\n```\n\n## ✅ Example of correct code\n\n```js\nconst load = stub().rejects(Error('LOAD USED'));\n```\n\n## License\n\nMIT\n","publish_time":1747405145199,"_cnpm_publish_time":1747405145199,"dist-tags":{"latest":"2.0.0"}}