{"name":"@putout/plugin-split-assignment-expressions","version":"1.1.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.1.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":"7da8405eb7b274c8f338c9797d94c0342ff26d78","tarball":"http://registry-npm.ywwl.com/@putout/plugin-split-assignment-expressions/download/@putout/plugin-split-assignment-expressions-1.1.0.tgz","fileCount":4,"integrity":"sha512-zdsMqK7ooVWr3lASCotPZg2/cr2TrcYCYIje0BzUswPYpJXPD//uVLrEW+KKeNTm7D6Q6+J3CC9EZ692v14gzA==","signatures":[{"sig":"MEQCIEDNSfUj1BIxx13JEVLFACt54itMwreX7ofoekvx7Aj/AiAA4VT5MTugvsFxra2BtDWh0P1W4l/JiZyM0RXloRA08w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5267,"size":2420,"noattachment":false,"key":"/@putout/plugin-split-assignment-expressions/-/@putout/plugin-split-assignment-expressions-1.1.0.tgz"},"main":"lib/split-assignment-expressions.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"1425f27e0083bd9ad3cee38d1a85705eebd541f5","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.8.1","description":"🐊Putout plugin adds ability to find and remove process.exit","directories":{},"_nodeVersion":"22.3.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","lerna":"^6.0.1","eslint":"^9.0.0","madrun":"^10.0.0","nodemon":"^3.0.1","@putout/test":"^10.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.1.0_1718393394365_0.05121522760846142","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":1718393394535,"_cnpm_publish_time":1718393394535,"dist-tags":{"latest":"2.1.0"}}