{"_id":"@putout/plugin-simplify-assignment","_rev":"6-7bad8b3e258ec9b9fefb1b43ff58c0ef","name":"@putout/plugin-simplify-assignment","dist-tags":{"latest":"3.1.1"},"versions":{"1.0.0":{"name":"@putout/plugin-simplify-assignment","version":"1.0.0","keywords":["putout","putout-plugin","plugin","assignment","simplify"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-simplify-assignment@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"http://github.com/coderaiser/putout","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"3a99d97491d87d6a8efa49d27dd9c9a0563f2943","tarball":"https://registry.npmjs.org/@putout/plugin-simplify-assignment/-/plugin-simplify-assignment-1.0.0.tgz","fileCount":4,"integrity":"sha512-fXbW/jmdn9G0Gja0BSM07R68QNZLfIJoaGoL6tXgyfmZPUgqEL1ftIDQMQwQux66yh+sQ1FdyEx/2/anyYqsjw==","signatures":[{"sig":"MEYCIQDXYugX+/iuHf3WnekeGcYooA2FZKGk/JthqxQVhs0p3wIhAJRAX6d4o+4Zt0X50w+Vc8tYxz8+xZgNIO7zrQJjS2yA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3798,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg05X+CRA9TVsSAnZWagAAoMQQAJ+YNVp65hRA2MkjmNu7\nil4OhcPBaTyLeByJ8/1JXLoHkyczErjTJdFTvLihj3dLALU5y5fFc2pCsO2K\nmnOuHu27opeekdrYBli5ih61LBWVVzLevO2JiAyAyKyVWKoc6hkxtcgIswek\n3avJHJhHhTOwgJAbA0dAwaXliCOIecuphJqBR3mfZAbcpMBu9+qj4MDqfyzz\nBu9cd/dweMPRO1ZlNcE/DYRpbVjbtphTIipjuzJeFdH4MLRtNsrG/TrEZ9Fw\nASrehK7cLthmiCUAOF4mJcgA1Sjr/2kcKj60n6txqHNReCrm00Xm708Lui5O\nC0on+5xS689S9I9Qeg9EMwioIKxporiXSxI6xHnTQ5u81ddhwUKWszHK30DY\n8BvaKvCn+wGjMudV9RoziYveYhqrF4aQvG97QM/iaJ2HNcDNdeVfVDgAW5TQ\n5FhEnFVOu9oppkcPTReEljGF3S1af1CIoBYSZqNKmqmCjBN4IhgAAx65dLJR\nZITNpdwr0lTQc/dctXB51iIKCwclSmn6F0lrAbMzoepkOWQetbKB2lS+H11F\ntYkLVVWcfnysgvAUsR+4TcM2TOxyZu9AynQ3WwSNiSDL7R5+YPnYKhNkgR7c\nRiijd1LWHxS1P8LsB5QBJLdj3+1teCqEkP2ewSrewsvFGYlJgq+pt5pd1UE8\nkXXC\r\n=P5/U\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/simplify-assignment.js","engines":{"node":">=14"},"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://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"7.15.1","description":"putout plugin adds ability to simplify assignment","directories":{},"_nodeVersion":"16.3.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.5.0","eslint":"^7.0.0","madrun":"^8.0.1","@putout/test":"^3.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^8.0.0"},"peerDependencies":{"putout":">=18"},"_npmOperationalInternal":{"tmp":"tmp/plugin-simplify-assignment_1.0.0_1624479229842_0.6620715252069762","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@putout/plugin-simplify-assignment","version":"2.0.0","keywords":["putout","putout-plugin","plugin","assignment","simplify"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-simplify-assignment@2.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-simplify-assignment#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"a24c5cceb273ad118ed39ea02a973ae0ae147918","tarball":"https://registry.npmjs.org/@putout/plugin-simplify-assignment/-/plugin-simplify-assignment-2.0.0.tgz","fileCount":4,"integrity":"sha512-qFH8M5vhshHXBCacU7TC84NAZ1t1tusZjedrL5yae84mIy3FEsu3DbFfOb21Y9gdfXI7UXR3wyhKZtULqN0W7g==","signatures":[{"sig":"MEUCIEqXzUDsKcmShoNNptDPNMN5DpjF74G53OnSwK5SDQXlAiEA9doqFIYz2/pfy0s3Y+2zFQyHrdZTM56kaWYvnaEol9o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3965,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKawIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpgMRAAgFXaTAZOjxg05DKqJwKjjS/PwXIB7r7ClSSKQ80GaWV4MIRx\r\ns/+vNwd3gd7geNyXf/CTCAlrJdACJ321pIvjJ9+IVP/4HVzr3SvidPDdgPlr\r\nNALm8g2zbI7WSy5+WfCQdopAW7LUjOxuHGgvzQ2h9bBhHK9lqZW52qeTdGy8\r\ntU1Zbc15dnXMcIagDvP2lduVthwbvG1Ftheozw0QPBP/hspEarig3Sqk7wfO\r\nhWUHGR0T1qwbfJTzsqADhgUyHi++00dzmEPS0YwZ/5Jj/cMfN+BWJf+gJk11\r\n/tAJjda/8vN3vbNfPCyLDS66zSXRIuOWyjwxiqDPqPjm3wMoSo5EGYkElRMo\r\np9WGht3J5t2sGNARc3LxDGNavppCRRTSnHq6tPdqjICwPrNrAMsqr+YXRsTC\r\n7JOEjjX+9mxwYx66VUlb5/yMsS5m6ro/L2KM5mAbXRJ0qCrurs6AnaMlj/+V\r\n/VwjfAmOUxhBbiRjaJE1RyNSNTaP4Ytw/UNr0uK5FThF55l8Ux53pQuPADHr\r\n4T9i2xMKIH4/bSvJXuvnv/MVN4VIty8v8dF8AqH7OSTj/IS41KbZ/wg662Ox\r\n6GYlWx8Lj+JvO01bnJYt6JPqCHOzc0uTECKVfAbMUnj8XbZ6s82276/7Bki/\r\nyJQDOx4o4BdhxIbgB6ceh3MEjyOnoemcuQQ=\r\n=/4Cm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/simplify-assignment.js","type":"commonjs","engines":{"node":">=16"},"gitHead":"b71e3c6ce931b9898cb9c36a37bdd09d5d0e8b4e","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,"commitType":"colon","repository":{"url":"git://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"8.3.0","description":"🐊Putout plugin adds ability to simplify assignment","directories":{},"_nodeVersion":"18.9.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-n":"^15.2.4","eslint-plugin-putout":"^16.0.0"},"peerDependencies":{"putout":">=27"},"_npmOperationalInternal":{"tmp":"tmp/plugin-simplify-assignment_2.0.0_1663675400371_0.8185372096270216","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@putout/plugin-simplify-assignment","version":"3.0.0","keywords":["putout","putout-plugin","plugin","assignment","simplify"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-simplify-assignment@3.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-simplify-assignment#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"bbf4cff1beb45906a380b827fefdc601feeaa13b","tarball":"https://registry.npmjs.org/@putout/plugin-simplify-assignment/-/plugin-simplify-assignment-3.0.0.tgz","fileCount":4,"integrity":"sha512-5GDmyVWBBGkDRyq6qxvFeOSrVsO56B94Cye3lETZiyMjtT+v0c9rRf8lF+PDGiUwrqzFzRFc5/f6ADF85w1ztw==","signatures":[{"sig":"MEUCIQDgIEk6q6br3Ij1Zy6OCEHDl9BYRcKdtFlic4CDrP8w4AIgLVBWmaK1+5n80kVsY9NG44X9GJJnz3fc4IyGut4gW5E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCyoJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolCw/+Ir4wAboG17C41k2YbZqSXxhr0hvIJccjZN49EfeOtYjfct7L\r\nkGz3uctMoPrhIVO4BOkxz+pKKy5+tvrMuGog8lAIlERkNwxv+efFHpS9fmfj\r\nw3PXLUMaGK2ygAE5J49J1VeRQ/i1TGEk9tnJlnqPxXTNDFadRDWXcahiVdCE\r\n+1H24Kpu4xCZ52daDmhMi1QqoZYNM8PaODGOxeXyCik1nCy4g0HFsBoKetCw\r\nNT9BC0iJMRwIpuyp1UAlQlIfgrlwKiN1OS4TKoX0RuTruYmJLsPDo1chQ5r2\r\nV+AxHmqJpmKRNW27AkTLe1AMcHnKLBwoaHzAUfZ+QS+FNvi1qn0+pZ3EiOSi\r\nVBFbFVgOu/YJS3jBpJFyGHS6dMOgANNlvgLHDHwi+LObCQvm6V8xjGA830G7\r\nR7LtFdgUPWgv/4FZQ4W4OCgYS+lrTLnoDXcWwkrv2ChqCaEbjSMHcywp6QZ0\r\n+j2vTIDKZR01Dzk55A6sDDP5uwVC1XaZonwEbQ6LQdgxWwKDtWOn6jns2h/H\r\n35G9u9jUvDON8WGwitaX3D1d2HkepJzGcjpRbvrZLESrhZcJEhVRtRCbjYPu\r\nHP4BAJxIfA4ia4/gB9Ovr5C2M9rhGFhjltWhoNZmCasVdBnc+ikCzl/zOnp6\r\nb47T7fDscl87H7PqzjFm9AuWgGQuL8csTBQ=\r\n=UkT6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/simplify-assignment.js","type":"commonjs","engines":{"node":">=16"},"gitHead":"d58a500b9dde354258d0e8db31c8d4fbb48f8bd4","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://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"9.1.3","description":"🐊Putout plugin adds ability to simplify assignment","directories":{},"_nodeVersion":"18.14.2","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.5.0","eslint":"^8.0.1","madrun":"^9.0.0","@putout/test":"^6.0.0","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0"},"peerDependencies":{"putout":">=29"},"_npmOperationalInternal":{"tmp":"tmp/plugin-simplify-assignment_3.0.0_1678453257366_0.527928143638186","host":"s3://npm-registry-packages"}},"3.1.0":{"name":"@putout/plugin-simplify-assignment","version":"3.1.0","keywords":["putout","putout-plugin","plugin","assignment","simplify"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-simplify-assignment@3.1.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-simplify-assignment#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"ee985efd7e44f402964bc09a7b825f6c222f4f18","tarball":"https://registry.npmjs.org/@putout/plugin-simplify-assignment/-/plugin-simplify-assignment-3.1.0.tgz","fileCount":4,"integrity":"sha512-pwYwK96USqM//E15/SAQ9x4DTzbMV3oBXCBDtliXQeVsDKGfm0Wn17LStl9yQ88M9hrplXFBGNHuQUAUOBAPeQ==","signatures":[{"sig":"MEYCIQCy4kBBnMLEAIYqW2KAxid3ANeWZHrYUO8LnZqZXge5dwIhAKrcTpNgpCCuqyNK6nwBrgA0t/O/n/fVDfcL7HLmpFfz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4126},"main":"lib/simplify-assignment.js","type":"commonjs","engines":{"node":">=16"},"gitHead":"f9c4ac1a7e1ed38dd66a0508f4d1cdc876bb39f9","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://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"9.6.6","description":"🐊Putout plugin adds ability to simplify assignment","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.5.0","eslint":"^8.0.1","madrun":"^9.0.0","@putout/test":"^6.0.0","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^17.0.0"},"peerDependencies":{"putout":">=29"},"_npmOperationalInternal":{"tmp":"tmp/plugin-simplify-assignment_3.1.0_1686172970506_0.8211567283804897","host":"s3://npm-registry-packages"}},"3.1.1":{"name":"@putout/plugin-simplify-assignment","version":"3.1.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to simplify assignment","homepage":"https://github.com/coderaiser/putout/tree/v38.5.7/packages/plugin-simplify-assignment#readme","main":"lib/simplify-assignment.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","plugin","assignment","simplify"],"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":">=29"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-simplify-assignment@3.1.1","gitHead":"a5615c6735219a7518a1bfd7c3adda98f87e9138","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.14.0","_npmVersion":"11.1.0","dist":{"integrity":"sha512-ZomBcCeDAFzCDkOhPLgSRfQhuRZed0lxs2oYt3AT91Ld2e+LnadSBe7cjTZpr7Lyi5yCggT+e1ZHCs7j1yeXzw==","shasum":"0fa34fa4f25c3c2c92c4d1f3a642ceabdef3a7a3","tarball":"https://registry.npmjs.org/@putout/plugin-simplify-assignment/-/plugin-simplify-assignment-3.1.1.tgz","fileCount":4,"unpackedSize":4273,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDZnS+cteD5kJ1d+7uEInSgiwozYLPYQGAM3LHstwgpdAiEAonWPoFqXMRqSWuMTwPIScSblpUdKg9CM0RxgCIAj8WY="}]},"_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-simplify-assignment_3.1.1_1742838811595_0.17457845052155974"},"_hasShrinkwrap":false}},"time":{"created":"2021-06-23T20:13:49.620Z","modified":"2025-03-24T17:53:31.940Z","1.0.0":"2021-06-23T20:13:49.980Z","2.0.0":"2022-09-20T12:03:20.603Z","3.0.0":"2023-03-10T13:00:57.520Z","3.1.0":"2023-06-07T21:22:50.649Z","3.1.1":"2025-03-24T17:53:31.762Z"},"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/v38.5.7/packages/plugin-simplify-assignment#readme","keywords":["putout","putout-plugin","plugin","assignment","simplify"],"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"description":"🐊Putout plugin adds ability to simplify assignment","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"readme":"# @putout/plugin-simplify-assignment [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-simplify-assignment.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-simplify-assignment \"npm\"\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to simplify `assignment`.\nMerged with [`@putout/plugin-assignment`](https://www.npmjs.com/package/@putout/plugin-assignment).\n\n## Install\n\n```\nnpm i @putout/plugin-simplify-assignment -D\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"simplify-assignment\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst {a} = {\n    a: 5,\n};\n\nconst [b] = [5];\nconst c = (() => 7)();\n```\n\n## ✅ Example of correct code\n\n```js\nconst a = 5;\nconst b = 5;\nconst c = 7;\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}