{"name":"@putout/plugin-split-assignment-expressions","version":"1.2.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to find and remove process.exit","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-split-assignment-expressions#readme","main":"lib/split-assignment-expressions.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","putout-plugin-split","plugin","assignment-expressions"],"devDependencies":{"@putout/test":"^10.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^22.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=35"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-split-assignment-expressions@1.2.0","gitHead":"d7ce7140180f6df7eec246db161c4a01788d72ab","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.3.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-mDS6l5R/Iu+7tfW3YL4NgpG5cX30ETxdDby42aDXh1Z+SpzapCK3LPseezQZWFwC4xKLGdQzOce1ZzrHydpe/w==","shasum":"4dfb82cc29ca0ee3debe47466d93f035f3bb64d6","tarball":"http://registry-npm.ywwl.com/@putout/plugin-split-assignment-expressions/download/@putout/plugin-split-assignment-expressions-1.2.0.tgz","fileCount":4,"unpackedSize":5321,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA8bxKlelN2Ethkj+3Yta9N2OsLZWsT6d4FAt9SuvU1QAiEAmIuHr1xLRSYmey/gXJ/1uyWMZKqpauQj4J13i9MVcik="}],"size":2450,"noattachment":false,"key":"/@putout/plugin-split-assignment-expressions/-/@putout/plugin-split-assignment-expressions-1.2.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-split-assignment-expressions_1.2.0_1718475596473_0.0011450697535591026"},"_hasShrinkwrap":false,"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":1718475596612,"_cnpm_publish_time":1718475596612,"dist-tags":{"latest":"2.1.0"}}