{"name":"@putout/plugin-split-variable-declarations","version":"5.0.1","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.1","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":"d71dc3409e1c21f41fa1d0559f9b6946ac93dda5","tarball":"http://registry-npm.ywwl.com/@putout/plugin-split-variable-declarations/download/@putout/plugin-split-variable-declarations-5.0.1.tgz","fileCount":4,"integrity":"sha512-qi5jRekAdYST34gFHEvk0xiaIis4Y2QSNtQj9GbVs2pnUZ7UtLgEDEDiUhO7l3T1jqyOVzSv4WSsgYNjZVzAJg==","signatures":[{"sig":"MEQCIF/KRAx86pKLTDQnMaPuS6KEfEY3bdfRPoP/nF20H2MYAiAFb9gaocApNeY/LjNeocEB0VyjNW+MWtw+TPCvdQBV6A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5629,"size":2528,"noattachment":false,"key":"/@putout/plugin-split-variable-declarations/-/@putout/plugin-split-variable-declarations-5.0.1.tgz"},"main":"lib/split-variable-declarations.js","type":"module","engines":{"node":">=20"},"gitHead":"fdb0d93a0e897511fa1db5a059243b9a780304f2","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.4.2","description":"🐊Putout plugin adds ability to find and remove process.exit","directories":{},"_nodeVersion":"24.5.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":"^14.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^3.0.0","eslint-plugin-putout":"^28.0.0","@putout/plugin-remove-unused-variables":"*"},"peerDependencies":{"putout":">=40"},"_npmOperationalInternal":{"tmp":"tmp/plugin-split-variable-declarations_5.0.1_1754692320114_0.8918752840453099","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":1754692320289,"_cnpm_publish_time":1754692320289,"dist-tags":{"latest":"5.0.2"}}