{"name":"@putout/plugin-split-variable-declarations","version":"3.0.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-variable-declarations#readme","main":"lib/split-variable-declarations.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","variables"],"devDependencies":{"@putout/plugin-remove-unused-variables":"*","@putout/test":"^6.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^17.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=29"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"2aed00cb68254fe34c200126743aeccd9ccaf78f","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-split-variable-declarations@3.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.6.6","dist":{"integrity":"sha512-K8b958p3+5c+hB8YxqBgrUGV2W79lHnsokzFGSe1KqpSmYzoM1cIEiT7MxpcA+WJi3rAlQ2iPO6ehWUIM+9USQ==","shasum":"c00227964921ab4e1e698c0944b6c41685503d7c","tarball":"http://registry-npm.ywwl.com/@putout/plugin-split-variable-declarations/download/@putout/plugin-split-variable-declarations-3.0.0.tgz","fileCount":4,"unpackedSize":5172,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF8mGacB1tLavItpOvAuGY0aHYTIf3xMCJljeZpLbJpkAiBO90u97hXO1aBqU7Q80DmD/bJVGEKMbW741GtMVql3gg=="}],"size":2397,"noattachment":false,"key":"/@putout/plugin-split-variable-declarations/-/@putout/plugin-split-variable-declarations-3.0.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-variable-declarations_3.0.0_1686588170356_0.29061357130608445"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-split-variable-declarations [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-split-variable-declarations.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-split-variable-declarations \"npm\"\n\n> - The [`let`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let) statement declares a block-scoped local variable, optionally initializing it to a value.\n> - [`const`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const) statements are also block-scoped. The value of a constant can't be changed through reassignment, and it can't be redeclared. However, if a constant is an **object** or **array** its properties or items can be updated or removed.\n>\n> (c) MDN\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.\n\n## Install\n\n```\nnpm i @putout/plugin-split-variable-declarations\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"split-variable-declarations\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nlet a, b;\n```\n\n## ✅ Example of correct code\n\n```js\nlet a;\nlet b;\n```\n\n## License\n\nMIT\n","publish_time":1686588170587,"_cnpm_publish_time":1686588170587,"dist-tags":{"latest":"5.0.2"}}