{"name":"@putout/plugin-split-assignment-expressions","version":"2.1.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+https://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/eslint-flat":"^2.0.0","@putout/test":"^12.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^25.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=38"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-split-assignment-expressions@2.1.0","gitHead":"8b8623aff65d893d4aab09a07eee6bef185ef484","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.14.0","_npmVersion":"11.1.0","dist":{"integrity":"sha512-bgdNJEJSY6RD/HQGw/172agdf9x6t4sLFpMx1dhlNSD85867R7GnedFcgK5otGyzdNZAPVGxz/sMeCzQGOmNXA==","shasum":"1c061ef5a20ee1148fc8fb50cb6a1bf32c95ad93","tarball":"http://registry-npm.ywwl.com/@putout/plugin-split-assignment-expressions/download/@putout/plugin-split-assignment-expressions-2.1.0.tgz","fileCount":4,"unpackedSize":6057,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCtGGsGu8LsGR/O74zxuiHgXqleefxoIsiN5EQmglFXIwIhAPqHeAmgmHDJh7ZVQzYft+cvF66u1XoYk68DsBgzCIii"}],"size":2643,"noattachment":false,"key":"/@putout/plugin-split-assignment-expressions/-/@putout/plugin-split-assignment-expressions-2.1.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-split-assignment-expressions_2.1.0_1740775584538_0.7856627255055593"},"_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":1740775584700,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1740775584700,"dist-tags":{"latest":"2.1.0"}}