{"name":"@putout/plugin-split-assignment-expressions","version":"2.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@2.0.0","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":"c88632a8b45ccb5ea3b7d91b7076b8bda2f9c269","tarball":"http://registry-npm.ywwl.com/@putout/plugin-split-assignment-expressions/download/@putout/plugin-split-assignment-expressions-2.0.0.tgz","fileCount":4,"integrity":"sha512-2sWiUE0PKn6Y4eQMvCkzPAtGk69CsZdwQJnHlDkB4xxChlSkOwagWVW0CYXUCdBJqJxeLbjG9qqR0ygshhIUaw==","signatures":[{"sig":"MEYCIQCSg+DFkfW4sAJo+0T2yz70rIkNUrT5n6oot7lZ9k3zGQIhAOFwmDSNJci5LOqzlYdDV8yCvIDiRo7AlxDPmXx0XrBA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5509,"size":2498,"noattachment":false,"key":"/@putout/plugin-split-assignment-expressions/-/@putout/plugin-split-assignment-expressions-2.0.0.tgz"},"main":"lib/split-assignment-expressions.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"96fe506d7ad3eb08ff711f2bbdd06445dd0bf2e5","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 find and remove process.exit","directories":{},"_nodeVersion":"22.14.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^10.0.0","nodemon":"^3.0.1","@putout/test":"^12.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^2.0.0","eslint-plugin-putout":"^25.0.1"},"peerDependencies":{"putout":">=38"},"_npmOperationalInternal":{"tmp":"tmp/plugin-split-assignment-expressions_2.0.0_1740766991353_0.3547957848608978","host":"s3://npm-registry-packages-npm-production"},"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":1740766991533,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1740766991533,"dist-tags":{"latest":"2.1.0"}}