{"name":"@putout/plugin-split-assignment-expressions","version":"1.0.0","keywords":["putout","putout-plugin","putout-plugin-split","plugin","assignment-expressions"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-split-assignment-expressions@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-split-assignment-expressions#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"beb3e7cfa44bbef7caf299d109968ab5076c29cb","tarball":"http://registry-npm.ywwl.com/@putout/plugin-split-assignment-expressions/download/@putout/plugin-split-assignment-expressions-1.0.0.tgz","fileCount":4,"integrity":"sha512-4SPuCDB70o22LJC6sS9D7mEPO+MDzX4Vbx5CLuLfsm/dv1t3/JxAUVR8tmZ1eL71otOkHl23YbJQIyUVZBtSYw==","signatures":[{"sig":"MEUCIHY4wWZL8DBAPgrjeh06aopieVTzcolb/w1FBPZJnslKAiEAvXOpL0nlBwO5N9gw7KYozGtWhr7tQ1svJ26aTht9ado=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5175,"size":2401,"noattachment":false,"key":"/@putout/plugin-split-assignment-expressions/-/@putout/plugin-split-assignment-expressions-1.0.0.tgz"},"main":"lib/split-assignment-expressions.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"cd09201f5fc6a07ee9bb27f8877021c33841821a","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":"10.7.0","description":"🐊Putout plugin adds ability to find and remove process.exit","directories":{},"_nodeVersion":"22.2.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^9.0.0","lerna":"^6.0.1","eslint":"^9.0.0","madrun":"^10.0.0","nodemon":"^3.0.1","@putout/test":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^22.0.0"},"peerDependencies":{"putout":">=35"},"_npmOperationalInternal":{"tmp":"tmp/plugin-split-assignment-expressions_1.0.0_1716904796917_0.6812952752869281","host":"s3://npm-registry-packages"},"readme":"# @putout/plugin-split-assignment-expressions [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-split-assignment-expressions.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-split-assignment-expressions \"npm\"\n\n> The assignment (`=`) operator is used to assign a value to a variable or property. The assignment expression itself has a value, which is the assigned value. This allows multiple assignments to be chained in order to assign a single value to multiple variables.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Assignment)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin 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## Install\n\n```\nnpm i @putout/plugin-split-assignment-expressions\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"split-assignment-expressions\": \"on\"\n    }\n}\n```\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## License\n\nMIT\n","publish_time":1716904797112,"_cnpm_publish_time":1716904797112,"dist-tags":{"latest":"2.1.0"}}