{"name":"@putout/plugin-split-variable-declarations","version":"5.0.0","keywords":["putout","putout-plugin","putout-plugin-split","plugin","variables"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-split-variable-declarations@5.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-split-variable-declarations#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"8a5f773c6f01e0b66f880aa5d1576198bf4d616c","tarball":"http://registry-npm.ywwl.com/@putout/plugin-split-variable-declarations/download/@putout/plugin-split-variable-declarations-5.0.0.tgz","fileCount":4,"integrity":"sha512-97UgP6vo27IUJckI+uNnufcTg6RqoBPe+7VzmITMT/1a9ZB0ioh0BTINsM1SPDJM6OT2MQYjvW1PN1KYlMyifg==","signatures":[{"sig":"MEUCICzNXvBYISttnmn28CZR2IfN/kfrdK+EFmPYeZqG77rKAiEAtX7lZsvCFQpE6W72ZD+CHvZ15D2/nfrQ6vbDSLIN960=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5337,"size":2420,"noattachment":false,"key":"/@putout/plugin-split-variable-declarations/-/@putout/plugin-split-variable-declarations-5.0.0.tgz"},"main":"lib/split-variable-declarations.js","type":"module","engines":{"node":">=20"},"gitHead":"e20b4791d794a59c48b6f80b35941de420797f30","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.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^11.0.0","nodemon":"^3.0.1","@putout/test":"^13.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^3.0.0","eslint-plugin-putout":"^26.0.0","@putout/plugin-remove-unused-variables":"*"},"peerDependencies":{"putout":">=40"},"_npmOperationalInternal":{"tmp":"tmp/plugin-split-variable-declarations_5.0.0_1745924791820_0.6791816911314934","host":"s3://npm-registry-packages-npm-production"},"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 (`;`). For the same reason, **diff** of changed declarations are more comfortable to read. Merged with [`@putout/plugin-variables`](http://npmjs.com/package/@putout/plugin-variables).\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## Comparison\n\nLinter | Rule | Fix\n--------|-------|------------|\n🐊 **Putout** | [`remove-debugger`](https://github.com/coderaiser/putout/tree/master/packages/plugin-split-variable-declarations#readme) | ✅\n⏣ **ESLint** | [`no-var`](https://eslint.org/docs/latest/rules/one-var) | ✅\n\n## License\n\nMIT\n","publish_time":1745924791992,"_cnpm_publish_time":1745924791992,"dist-tags":{"latest":"5.0.2"}}