{"_id":"@putout/plugin-assignment","_rev":"7-17d7de7aba23b1cac749f92a2d80f26c","name":"@putout/plugin-assignment","dist-tags":{"latest":"3.1.0"},"versions":{"1.0.1":{"name":"@putout/plugin-assignment","version":"1.0.1","keywords":["putout","putout-plugin","plugin","assignment"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-assignment@1.0.1","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/v38.5.7/packages/plugin-assignment#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"be878027a8007304c91f64226f7d286b69b5a053","tarball":"https://registry.npmjs.org/@putout/plugin-assignment/-/plugin-assignment-1.0.1.tgz","fileCount":9,"integrity":"sha512-Y8DUcmdGGIZUXB4cmAwM1x66fdq9G1EOPTQq+Dhx+X5JF6sKrTUEmUdVVuMub4QtMLtiOK7RCezv5QR5QHPvOA==","signatures":[{"sig":"MEQCIEVpTO6F07pGOwxMK2ACNPNj3d1VfmPjf7bysufQBPnfAiBOzBvEdjigUZozSNiVdQyNg7QzPyDYZTfaA8D9ORC9KQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11990},"main":"lib/index.js","type":"commonjs","engines":{"node":">=20"},"exports":{".":"./lib/index.js","./strict-mode":"./lib/strict-mode/index.js","./convert-commonjs-to-esm":"./lib/convert-commonjs-to-esm.js","./convert-esm-to-commonjs":"./lib/convert-esm-to-commonjs/index.js"},"gitHead":"a5615c6735219a7518a1bfd7c3adda98f87e9138","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.1.0","description":"🐊Putout plugin adds ability to transform code related to assignment","directories":{},"_nodeVersion":"22.14.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^11.0.0","montag":"^1.2.1","nodemon":"^3.0.1","@putout/test":"^13.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^3.0.0","eslint-plugin-putout":"^26.0.0","@putout/plugin-putout":"*","@putout/plugin-declare":"*","@putout/plugin-typescript":"*","@putout/plugin-reuse-duplicate-init":"*","@putout/plugin-declare-before-reference":"*"},"peerDependencies":{"putout":">=39"},"_npmOperationalInternal":{"tmp":"tmp/plugin-assignment_1.0.1_1742839990341_0.3712902052865499","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@putout/plugin-assignment","version":"1.0.2","keywords":["putout","putout-plugin","plugin","assignment"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-assignment@1.0.2","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/v38.5.7/packages/plugin-assignment#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"5e0dd7f374425398a171da355392d919436bb504","tarball":"https://registry.npmjs.org/@putout/plugin-assignment/-/plugin-assignment-1.0.2.tgz","fileCount":9,"integrity":"sha512-DP9dX6ADObgjeGyhMaJxwTDSVDsZVJKQ4SiTulmCSkWGz+gnHZfQOxA2rLGUCaXM6dzKMtOfHPdlshbQ8Dnivw==","signatures":[{"sig":"MEQCIAtcNRoJhS9o6ujfvQ6Vn4HKwGNKsq3hByEDyvDqV363AiA3RuQtO7+3TP3/I/0R85OR+SsenSjkVJL0LpyzF5dNlg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11856},"main":"lib/index.js","type":"module","engines":{"node":">=20"},"exports":{".":"./lib/index.js","./strict-mode":"./lib/strict-mode/index.js","./convert-commonjs-to-esm":"./lib/convert-commonjs-to-esm.js","./convert-esm-to-commonjs":"./lib/convert-esm-to-commonjs/index.js"},"gitHead":"7a11f08d82efa2ce0dda434aee74185fbdf85dbf","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.1.0","description":"🐊Putout plugin adds ability to transform code related to assignment","directories":{},"_nodeVersion":"22.14.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^11.0.0","montag":"^1.2.1","nodemon":"^3.0.1","@putout/test":"^13.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^3.0.0","eslint-plugin-putout":"^26.0.0","@putout/plugin-putout":"*","@putout/plugin-declare":"*","@putout/plugin-typescript":"*","@putout/plugin-reuse-duplicate-init":"*","@putout/plugin-declare-before-reference":"*"},"peerDependencies":{"putout":">=39"},"_npmOperationalInternal":{"tmp":"tmp/plugin-assignment_1.0.2_1742847504966_0.5270787759867486","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@putout/plugin-assignment","version":"2.0.0","keywords":["putout","putout-plugin","plugin","assignment"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-assignment@2.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/v38.5.7/packages/plugin-assignment#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"33cf0fbfe597451789fdaf46a9075bc3a80e537c","tarball":"https://registry.npmjs.org/@putout/plugin-assignment/-/plugin-assignment-2.0.0.tgz","fileCount":9,"integrity":"sha512-1Qc1nGYpQJ1mHJpi5GRs/fSrN5LQr9VUQIblBY3LzFMPChnXjGRyBtQvrQ7HOxMXleLWoz6fTTNXKe8XHvWqrg==","signatures":[{"sig":"MEQCIEGwRMzp4tCqSExVbrwJpSl1LRBpc6CPEFPaxNLZNnlFAiAOpiIUHUzDEpkCgHosuigiOWu+XYKy8qZdigI5T9hNNA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11661},"main":"lib/index.js","type":"module","engines":{"node":">=20"},"exports":{".":"./lib/index.js"},"gitHead":"3cee05e2800042c92c5aa54efe72677f19dd8652","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.1.0","description":"🐊Putout plugin adds ability to transform code related to assignment","directories":{},"_nodeVersion":"20.19.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^11.0.0","montag":"^1.2.1","nodemon":"^3.0.1","@putout/test":"^13.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^3.0.0","eslint-plugin-putout":"^27.0.0","@putout/plugin-putout":"*","@putout/plugin-declare":"*","@putout/plugin-typescript":"*","@putout/plugin-reuse-duplicate-init":"*","@putout/plugin-declare-before-reference":"*"},"peerDependencies":{"putout":">=40"},"_npmOperationalInternal":{"tmp":"tmp/plugin-assignment_2.0.0_1748727076827_0.05436612550208553","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@putout/plugin-assignment","version":"2.1.0","keywords":["putout","putout-plugin","plugin","assignment"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-assignment@2.1.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-assignment#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"3e3ec1932d7de4599dbf714f37a3487ae677586b","tarball":"https://registry.npmjs.org/@putout/plugin-assignment/-/plugin-assignment-2.1.0.tgz","fileCount":9,"integrity":"sha512-a5h4Ksi2+fSrqO25yPo1gmJ3Yc7yLQG5OW1sNCbVkdbTdKMq7LvXfFlQQovF7bRc8zKVXXt0VDahebXCZXVBJQ==","signatures":[{"sig":"MEUCIBel2VQUeCRfIDj4dFpocLni9QZlY/iUmnc67+uFnyXVAiEAmtYOvbAIgjW+lBeBCy7QfKoA3OH/Ma8ljclLzOHsVX0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11963},"main":"lib/index.js","type":"module","engines":{"node":">=20"},"exports":{".":"./lib/index.js"},"gitHead":"7389d0f51cd5b1c78259adbb38d34af71beb6883","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 transform code related to assignment","directories":{},"_nodeVersion":"24.4.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^11.0.0","montag":"^1.2.1","nodemon":"^3.0.1","@putout/test":"^13.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^3.0.0","eslint-plugin-putout":"^28.0.0","@putout/plugin-putout":"*","@putout/plugin-declare":"*","@putout/plugin-typescript":"*","@putout/plugin-reuse-duplicate-init":"*","@putout/plugin-declare-before-reference":"*"},"peerDependencies":{"putout":">=40"},"_npmOperationalInternal":{"tmp":"tmp/plugin-assignment_2.1.0_1753009551100_0.09848086010696977","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@putout/plugin-assignment","version":"3.0.0","keywords":["putout","putout-plugin","plugin","assignment"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-assignment@3.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-assignment#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"6e85a7c12c0b194edbb6fb7543479f7d6b814974","tarball":"https://registry.npmjs.org/@putout/plugin-assignment/-/plugin-assignment-3.0.0.tgz","fileCount":10,"integrity":"sha512-6qtGCp/5ZQBhI0LkWjUpoz9z+5Vyli0n6MxJKtfX7wiCWMd6mGkhdtr4555hmifk3ZkUejs98TgS4SB2LoczPg==","signatures":[{"sig":"MEQCIFIsYgCmD37h77fztup343Z4gGuOs3vNqdw6wo3nS3WLAiBBQvu8AWYI6d+LT6I+nYjyjlHam17RfVpc2KP3MxQDSA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13032},"main":"lib/index.js","type":"module","engines":{"node":">=22"},"exports":{".":"./lib/index.js"},"gitHead":"5a66cbfc95b609dcf2f022ad5ca67beee86879ca","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":"12.0.2","description":"🐊Putout plugin adds ability to transform code related to assignment","directories":{},"_nodeVersion":"26.8.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madrun":"^13.0.0","montag":"^2.0.0","nodemon":"^3.0.1","superc8":"^12.0.0","@putout/test":"^15.0.0","@putout/eslint-flat":"^4.0.0","eslint-plugin-putout":"^31.0.0","@putout/plugin-putout":"*","@putout/plugin-declare":"*","@putout/plugin-typescript":"*","@putout/plugin-reuse-duplicate-init":"*","@putout/plugin-declare-before-reference":"*"},"peerDependencies":{"putout":">=42"},"_npmOperationalInternal":{"tmp":"tmp/plugin-assignment_3.0.0_1788514798416_0.8276095915411101","host":"s3://npm-registry-packages-npm-production"}},"3.0.1":{"name":"@putout/plugin-assignment","version":"3.0.1","keywords":["putout","putout-plugin","plugin","assignment"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-assignment@3.0.1","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-assignment#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"94790b4e50c7f79686ea0b769d4cfc2d655b43a1","tarball":"https://registry.npmjs.org/@putout/plugin-assignment/-/plugin-assignment-3.0.1.tgz","fileCount":10,"integrity":"sha512-K4pACuzq7ApsSHa/wZhexPmFiSzlT4JT/N3rwIzWgQDPPReBhlGt15gEUC90RrTP9Zq2w98SMxK3+wbm4K+KGg==","signatures":[{"sig":"MEUCIQCXPVCN42tC4zOo735HdbnNamhmg/pUyP/Y/fDnMprDuQIgXlFNheQHTG+Jzqd93fO1gjGDM4Pioweq3YW6OsTUMPI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13194},"main":"lib/index.js","type":"module","engines":{"node":">=22"},"exports":{".":"./lib/index.js"},"gitHead":"f473e3bc73762dfab240a1975ca94a8b3085cfa1","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":"12.0.2","description":"🐊Putout plugin adds ability to transform code related to assignment","directories":{},"_nodeVersion":"26.8.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madrun":"^13.0.0","montag":"^2.0.0","nodemon":"^3.0.1","superc8":"^12.0.0","@putout/test":"^15.0.0","@putout/eslint-flat":"^4.0.0","eslint-plugin-putout":"^31.0.0","@putout/plugin-putout":"*","@putout/plugin-declare":"*","@putout/plugin-typescript":"*","@putout/plugin-reuse-duplicate-init":"*","@putout/plugin-declare-before-reference":"*"},"peerDependencies":{"putout":">=42"},"_npmOperationalInternal":{"tmp":"tmp/plugin-assignment_3.0.1_1788515935740_0.3328875569219385","host":"s3://npm-registry-packages-npm-production"}},"3.1.0":{"_id":"@putout/plugin-assignment@3.1.0","tag":false,"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"dist":{"shasum":"a86bd72f1e6d86f2cd8c646f83ff3d7146654746","tarball":"https://registry.npmjs.org/@putout/plugin-assignment/-/plugin-assignment-3.1.0.tgz","fileCount":10,"integrity":"sha512-jYAxhp2X7ffWk1BKETa7I6648oXfErVKKTjaj6lD2JOISIeofb3INptKRuDRiHy/1D8Ix08J4zXtJkNbQYsplw==","signatures":[{"sig":"MEYCIQDnluXGnDNa7aHCS0YUYOz2BOhcGNDbRSv/vFG/k4pjcgIhAOw7Ru6+lPXif+REs2tAW5EssjwcQhjbyUW5yWm8L3CK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCzp8Yz013kOMq8d7ib305rrKhqBYYnlAKvgqwz7HUqVwIgLbvY1+esPsm1jlF1XsYdXfeSNcOYWmLAPtZ90t6Wh2Q="}],"unpackedSize":13330},"main":"lib/index.js","name":"@putout/plugin-assignment","type":"module","author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"engines":{"node":">=22"},"exports":{".":"./lib/index.js"},"gitHead":"cb4f20fb4e1cbd96b85c98fce80a7182fadcfd76","license":"MIT","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"},"version":"3.1.0","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-assignment#readme","keywords":["putout","putout-plugin","plugin","assignment"],"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"12.0.2","description":"🐊Putout plugin adds ability to transform code related to assignment","directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_nodeVersion":"26.10.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madrun":"^13.0.0","montag":"^2.0.0","nodemon":"^3.0.1","superc8":"^12.0.0","@putout/test":"^15.0.0","@putout/eslint-flat":"^4.0.0","eslint-plugin-putout":"^31.0.0","@putout/plugin-putout":"*","@putout/plugin-declare":"*","@putout/plugin-typescript":"*","@putout/plugin-reuse-duplicate-init":"*","@putout/plugin-declare-before-reference":"*"},"peerDependencies":{"putout":">=42"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-assignment_3.1.0_1790866601165_0.5863853541238886"}}},"time":{"created":"2025-03-24T18:13:10.223Z","modified":"2026-10-01T14:56:41.503Z","1.0.1":"2025-03-24T18:13:10.572Z","1.0.2":"2025-03-24T20:18:25.164Z","2.0.0":"2025-05-31T21:31:17.016Z","2.1.0":"2025-07-20T11:05:51.266Z","3.0.0":"2026-09-04T09:39:58.569Z","3.0.1":"2026-09-04T09:58:55.871Z","3.1.0":"2026-10-01T14:56:41.286Z"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-assignment#readme","keywords":["putout","putout-plugin","plugin","assignment"],"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"description":"🐊Putout plugin adds ability to transform code related to assignment","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"readme":"# @putout/plugin-assignment [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-assignment.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-assignment \"npm\"\n\n> The [**assignment operator**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Assignment) (`=`) is used to assign a value to a variable. The assignment operation evaluates to the assigned value. Chaining the assignment operator is possible in order to assign a single value to multiple variables.\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to transform to new **Node.js** API and apply best practices.\n\n## Install\n\n```\nnpm i putout @putout/plugin-assignment -D\n```\n\n## Rules\n\n- ✅ [remove-useless-undefined](#remove-useless-undefined)\n- ✅ [convert-to-arrow-function](#convert-to-arrow-function);\n- ✅ [convert-to-comparison](#convert-to-comparison);\n- ✅ [convert-to-declaration](#convert-to-declaration);\n- ✅ [simplify](#simplify);\n- ✅ [split](#split);\n\n## Config\n\n```json\n{\n    \"rules\": {\n        \"assignment/convert-to-arrow-function\": \"on\",\n        \"assignment/convert-to-comparison\": \"on\",\n        \"assignment/convert-to-declaration\": \"on\",\n        \n        \"assignment/remove-useless-undefined\": \"on\",\n        \"assignment/simplify\": \"on\",\n        \"assignment/split\": \"on\"\n    }\n}\n```\n\n## convert-to-arrow-function\n\n> An [**arrow function expression**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions) is a compact alternative to a **function expression**.\n>\n> (c) MDN\n\nRule adds ability to convert **assignment** to **arrow** function.\n\n### ❌ Example of incorrect code\n\n```js\nconst createRegExp = a = RegExp(a, 'g');\n```\n\n### ✅ Example of correct code\n\n```js\nconst createRegExp = (a) => RegExp(a, 'g');\n```\n\n## convert-to-comparison\n\n> You should almost never have an `if...else` with an assignment like `a = b` as a condition.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else)\n\n### ❌ Example of incorrect code\n\n```js\nif (a = b) {}\n```\n\n### ✅ Example of correct code\n\n```js\nif (a === b) {}\n```\n\n## convert-to-declaration\n\n> The `const` declaration declares block-scoped local variables. The value of a constant can't be changed through reassignment using the assignment operator, but if a constant is an object, its properties can be added, updated, or removed.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const)\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/857e6bdc83dc2ee947b2945f6600d417/34d1c3852d85225da7eabdf9b91c138b7533c60b).\n\n## ❌ Example of incorrect code\n\n```js\na = 5;\n```\n\n## ✅ Example of correct code\n\n```js\nconst a = 5;\n```\n\n## simplify\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## split\n\nRule adds ability to find and split variable declarations because (re)moving a line is simpler and less error prone then changing coma (`=`) to colon (`;`).\n\nFor the same reason, **diff** of changed declarations are more comfortable to read. Checkout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/fee33133e2313c3a741193570e307a58/f8fae66c93acc546194df49fff2a5fc13de8434c).\n\n## ❌ Example of incorrect code\n\n```js\na = b = c = 1;\n```\n\n## ✅ Example of correct code\n\n```js\na = 1;\nb = a;\nc = a;\n```\n\n## remove-useless-undefined\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/de00120e433802e73ae9464b4e63b718/e4cd06b2486afce08e213809de9f0dba7b2e94ea).\n\n### ❌ Example of incorrect code\n\n```js\nconst x = ({a} = {\n    a: undefined,\n    b: '',\n}) => a;\n```\n\n### ✅ Example of correct code\n\n```js\nconst x = ({a} = {\n    b: '',\n}) => a;\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}