{"_id":"@putout/plugin-simplify-assignment","_rev":"4156954","name":"@putout/plugin-simplify-assignment","description":"🐊Putout plugin adds ability to simplify assignment","dist-tags":{"latest":"3.1.1"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T20:29:41.000Z","created":"2021-06-23T20:13:49.980Z","3.1.1":"2025-03-24T17:53:31.762Z","3.1.0":"2023-06-07T21:22:50.649Z","3.0.0":"2023-03-10T13:00:57.520Z","2.0.0":"2022-09-20T12:03:20.603Z","1.0.0":"2021-06-23T20:13:49.980Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"versions":{"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":{"shasum":"0fa34fa4f25c3c2c92c4d1f3a642ceabdef3a7a3","size":1957,"noattachment":false,"key":"/@putout/plugin-simplify-assignment/-/@putout/plugin-simplify-assignment-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-simplify-assignment/download/@putout/plugin-simplify-assignment-3.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-simplify-assignment_3.1.1_1742838811595_0.17457845052155974"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-24T17:53:31.762Z","publish_time":1742838811762,"_source_registry_name":"default","_cnpm_publish_time":1742838811762},"3.1.0":{"name":"@putout/plugin-simplify-assignment","version":"3.1.0","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/master/packages/plugin-simplify-assignment#readme","main":"lib/simplify-assignment.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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/test":"^6.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^17.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=29"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"f9c4ac1a7e1ed38dd66a0508f4d1cdc876bb39f9","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-simplify-assignment@3.1.0","_nodeVersion":"18.16.0","_npmVersion":"9.6.6","dist":{"shasum":"ee985efd7e44f402964bc09a7b825f6c222f4f18","size":1903,"noattachment":false,"key":"/@putout/plugin-simplify-assignment/-/@putout/plugin-simplify-assignment-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-simplify-assignment/download/@putout/plugin-simplify-assignment-3.1.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","tmp":"tmp/plugin-simplify-assignment_3.1.0_1686172970506_0.8211567283804897"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-06-07T21:22:50.649Z","publish_time":1686172970649,"_source_registry_name":"default","_cnpm_publish_time":1686172970649},"3.0.0":{"name":"@putout/plugin-simplify-assignment","version":"3.0.0","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/master/packages/plugin-simplify-assignment#readme","main":"lib/simplify-assignment.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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/test":"^6.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=29"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"d58a500b9dde354258d0e8db31c8d4fbb48f8bd4","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-simplify-assignment@3.0.0","_nodeVersion":"18.14.2","_npmVersion":"9.1.3","dist":{"shasum":"bbf4cff1beb45906a380b827fefdc601feeaa13b","size":1896,"noattachment":false,"key":"/@putout/plugin-simplify-assignment/-/@putout/plugin-simplify-assignment-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-simplify-assignment/download/@putout/plugin-simplify-assignment-3.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","tmp":"tmp/plugin-simplify-assignment_3.0.0_1678453257366_0.527928143638186"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-10T13:00:57.520Z","publish_time":1678453257520,"_cnpm_publish_time":1678453257520},"2.0.0":{"name":"@putout/plugin-simplify-assignment","version":"2.0.0","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/master/packages/plugin-simplify-assignment#readme","main":"lib/simplify-assignment.js","commitType":"colon","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=27"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"b71e3c6ce931b9898cb9c36a37bdd09d5d0e8b4e","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-simplify-assignment@2.0.0","_nodeVersion":"18.9.0","_npmVersion":"8.3.0","dist":{"shasum":"a24c5cceb273ad118ed39ea02a973ae0ae147918","size":1881,"noattachment":false,"key":"/@putout/plugin-simplify-assignment/-/@putout/plugin-simplify-assignment-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-simplify-assignment/download/@putout/plugin-simplify-assignment-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","tmp":"tmp/plugin-simplify-assignment_2.0.0_1663675400371_0.8185372096270216"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-20T12:45:17.961Z","publish_time":1663675400603,"_cnpm_publish_time":1663675400603},"1.0.0":{"name":"@putout/plugin-simplify-assignment","version":"1.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to simplify assignment","homepage":"http://github.com/coderaiser/putout","main":"lib/simplify-assignment.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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/test":"^3.0.0","c8":"^7.5.0","eslint":"^7.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^8.0.0","madrun":"^8.0.1"},"peerDependencies":{"putout":">=18"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-simplify-assignment@1.0.0","_nodeVersion":"16.3.0","_npmVersion":"7.15.1","dist":{"shasum":"3a99d97491d87d6a8efa49d27dd9c9a0563f2943","size":1777,"noattachment":false,"key":"/@putout/plugin-simplify-assignment/-/@putout/plugin-simplify-assignment-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-simplify-assignment/download/@putout/plugin-simplify-assignment-1.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","tmp":"tmp/plugin-simplify-assignment_1.0.0_1624479229842_0.6620715252069762"},"_hasShrinkwrap":false,"publish_time":1624479229980,"_cnpm_publish_time":1624479229980,"_cnpmcore_publish_time":"2021-12-16T21:06:10.115Z"}},"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","_attachments":{},"homepage":"https://github.com/coderaiser/putout/tree/v38.5.7/packages/plugin-simplify-assignment#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT"}