{"_id":"@putout/plugin-remove-useless-assign","_rev":"3-faa8c425255beeb17af12d0a5d9e49a4","name":"@putout/plugin-remove-useless-assign","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@putout/plugin-remove-useless-assign","version":"1.0.0","keywords":["putout","putout-plugin","plugin","assign","useless"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-useless-assign@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-assign#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"d47f8d59e250d878a1c65693c22994f7dad5fe3c","tarball":"https://registry.npmjs.org/@putout/plugin-remove-useless-assign/-/plugin-remove-useless-assign-1.0.0.tgz","fileCount":4,"integrity":"sha512-KuthWsa9JXzuGQpVR1PsdwS5+YjxNIF8y2hru61D+28qFA7ZwLJ4Mj5sQddcR/7NBwlEMtgSQ2nqfu2lPnPSOQ==","signatures":[{"sig":"MEUCICZX2FsHyk02jue+fPasbwnlftrGhMQyKrbKsDiG9cSFAiEA1ZqBBqIGckqpaDBxw68aUsNL8sn1nMR8BlypgvXhAxs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3836,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihLbgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmosCQ/9GDf14jx0Ku1s8j3uzKaiHx1QpDe2pFiJnoPotogTqnpdTYKn\r\nixSTbIZacNU3WVKVyQP+ul6cTBKEsFjZxIMz19E8l+Wq9NuS8Kj9Y/aC+niY\r\npp/UBBQSf42c+/mPBS1S1qwQGgO1zo0+hG5TTaHmaYVqLe5moyFUuWL0G/mo\r\nVusPijnZYoNM/FPfGkfgUH/ZfwZkaQwkjkBK9guBKbgZduQBNGE5TIuy3Ehd\r\nwolJrEcs+8lL9bWqsUV+jwCfUTjtJDz2YQ4sM1cx/Vsb8q2f3EYSI2c1owhG\r\nSyEZtefQOgJnZcHxDB84JViQUCVsLcDPiUVPI0fyXU80zc8AaW8sfK8JyxO2\r\njXxdUZZMp9Lqd2ZzuEAZKmd96AkdxNhN16CaCMVwZgeM6zjs4dJ8jyLudUvj\r\nZxpdwoDGJNepXAGAX8Hzbqdwa/gQW02qlg2n0QmHRMu/mPHat5xtg3zbSdew\r\nSn5IQ1Udzj3ApDh0SQGwEWJnR4OZB1iiBaNkUCKvKmKb+eEH/koUwYbd3S/b\r\n5+9yT//+s0ZFDBUnsVT+EAKEmhDO+s3858KogrXnm34RuQpZqSrG21cpGYSB\r\nMKU46jf3OYXyzLZNEXTKD3lCCYjfsfBllWdBLYP9bgbc1FVmqNOMR7CT5gD8\r\nmkhPin96PYvTP9VNCeWLuR02hNvAqwVREgI=\r\n=udQR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/remove-useless-assign.js","type":"commonjs","engines":{"node":">=16"},"gitHead":"7fe2865e300a38bf8df9238db3a0160c63c07278","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","publishOnly":"madrun publishOnly"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"8.3.0","description":"🐊Putout plugin adds ability to remove useless assign","directories":{},"_nodeVersion":"16.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.5.0","eslint":"^8.0.1","madrun":"^9.0.0","@putout/test":"^5.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^15.0.0"},"peerDependencies":{"putout":">=26"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-useless-assign_1.0.0_1652864735850_0.9420132275521387","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@putout/plugin-remove-useless-assign","version":"1.1.0","keywords":["putout","putout-plugin","plugin","assign","useless"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-useless-assign@1.1.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-assign#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"995523e62a510fd0969530d62b160a32ebaf13a0","tarball":"https://registry.npmjs.org/@putout/plugin-remove-useless-assign/-/plugin-remove-useless-assign-1.1.0.tgz","fileCount":4,"integrity":"sha512-lfTkCAVYKacsEuZRjVogH29FUH9xE3+7+15VEVzPPMiBdsACOJ9561yldXeqy6u/+9rwmmkYr8W1Bt7VyQEyvg==","signatures":[{"sig":"MEUCIHNDHuJ5RuPmH1LUnZKlOKHPiVFHWTtkShPULXd9dRzQAiEA2XpGX+jz/n7Xjf9FVggQUS8iBzxSWfdxzl394dEt76k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4055,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJik+c2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqYVA/+JY1w2q1ss3pQPlI3p2r+q616w5dVPzf1cfwVF8iFvsln/LAo\r\nRa/g9rR3+OBLY4xSb6Nugk6Zl9RdmnEFwH0pbZvFuu+cM2ZlgLEn4ib8ArSs\r\nnKbUXXP6V/F2ZZ4qH7xdCO4irCC0SItexJXqCksBzTPethjPAaR6WDkuOx8U\r\ndUhpXKaHQk9sL6hSe+vdlXe4wWCrCrTa7mPy7dHRJamzArY+UpHkeoumwiGf\r\n0ajIruJcDrWu8gWSZ1SVarxic4Av2VT2s9DDhFW2+27NJzkW3HC3rJuNV6ge\r\n7TqsNMpkYBH/J9wuEKr3MzPGqHIkR9ysIhWzeaWDtY9s+dLEjT8Pe3ccI/jW\r\nlEJE5VYTFb1tN+DmZP8fQTqaWXBseJeuNIE9jIO5B4zt1L5QcPD4r9elLdjQ\r\nbd9tyzlHnoV+L2bjfoXc7wxJkhXBdviL/3UYlDVKGkrQypRepQqAK3QeI1FS\r\nfF4mvpCBSWwrE4df6+4AUpjo/jgk+OO1lOZMKHeOrYpQ7XI+Jf3BwM86bcNI\r\nqkRaH0CacgV9wZP1Ui8bJ6SQnmbTCINYcjedKM0XS0v9s79klAvg2UvrhBcc\r\n7USym1HO9JtoDUwvRNnyUL77Rayq3tQB65QS+hjazZT1EKd/lJZG+fARbEYU\r\ngxFSgdyh5uSbyk7LaPWreYrFhwzfkNlZHsQ=\r\n=JBGw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/remove-useless-assign.js","type":"commonjs","engines":{"node":">=16"},"gitHead":"4af27b9c03ea44c95f33607a013cb52b7aa8b01a","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","publishOnly":"madrun publishOnly"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"8.3.0","description":"🐊Putout plugin adds ability to remove useless assign","directories":{},"_nodeVersion":"18.1.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.5.0","eslint":"^8.0.1","madrun":"^9.0.0","@putout/test":"^5.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^15.0.0"},"peerDependencies":{"putout":">=26"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-useless-assign_1.1.0_1653860149870_0.8158209219277277","host":"s3://npm-registry-packages"}},"2.0.0":{"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":"https://registry.npmjs.org/@putout/plugin-remove-useless-assign/-/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"}]},"_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}},"time":{"created":"2022-05-18T09:05:35.789Z","modified":"2025-05-16T14:19:05.418Z","1.0.0":"2022-05-18T09:05:35.986Z","1.1.0":"2022-05-29T21:35:50.013Z","2.0.0":"2025-05-16T14:19:05.199Z"},"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-useless-assign#readme","keywords":["putout","putout-plugin","plugin","assign","useless"],"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"description":"🐊Putout plugin adds ability to remove useless assign","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"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","readmeFilename":"README.md"}