{"name":"@putout/plugin-convert-assignment-to-declaration","version":"2.0.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert 'assignment' to 'declaration'","homepage":"https://github.com/coderaiser/putout/tree/v38.5.7/packages/plugin-convert-assignment-to-declaration#readme","main":"lib/convert-assignment-to-declaration.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","plugin","convert","apply","spread"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","@putout/test":"^13.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^26.0.0","madrun":"^11.0.0"},"peerDependencies":{"putout":">=37"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-convert-assignment-to-declaration@2.0.1","gitHead":"a5615c6735219a7518a1bfd7c3adda98f87e9138","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.14.0","_npmVersion":"11.1.0","dist":{"integrity":"sha512-PAprnY5/lerzqaDBk96PXu2ePzLMJf4V2+y+F+KUVAaT3QVAZK3sIBCsAWaag7ZAvQ5/TbpWOTwTUBzLZf5pSA==","shasum":"ac69792dc564ad5b025859bb55c54c2703a652ac","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-assignment-to-declaration/download/@putout/plugin-convert-assignment-to-declaration-2.0.1.tgz","fileCount":4,"unpackedSize":5219,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICuFPo/07gAeYb8ytjtf7estm/yH3flNKifqjeUV/hN8AiEA924QklDXEBJHUcHU/hIt502+sueL9ZwepUBIE6dnfoA="}],"size":2417,"noattachment":false,"key":"/@putout/plugin-convert-assignment-to-declaration/-/@putout/plugin-convert-assignment-to-declaration-2.0.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-convert-assignment-to-declaration_2.0.1_1742838425192_0.017370649740620525"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-convert-assignment-to-declaration [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-assignment-to-declaration.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-assignment-to-declaration \"npm\"\n\n> The assignment (`=`) operator is used to assign a value to a variable or property.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Assignment)\n\n> The `const` declaration declares block-scoped local variables. The value of a constant can't be changed through reassignment using the assignment operator, but if a constant is an object, its properties can be added, updated, or removed.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to convert `assignment` to `declaration`.\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/857e6bdc83dc2ee947b2945f6600d417/34d1c3852d85225da7eabdf9b91c138b7533c60b).\n\nMerged to [`@putout/plugin-assignment`](https://www.npmjs.com/package/@putout/plugin-assignment).\n\n## Install\n\n```\nnpm i @putout/plugin-convert-assignment-to-declaration -D\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"convert-assignment-to-declaration\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\na = 5;\n```\n\n## ✅ Example of correct code\n\n```js\nconst a = 5;\n```\n\n## License\n\nMIT\n","publish_time":1742838425385,"_cnpm_publish_time":1742838425385,"dist-tags":{"latest":"2.0.1"}}