{"name":"@putout/plugin-convert-assignment-to-declaration","version":"2.0.0","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/master/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/test":"^11.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0","madrun":"^10.0.0"},"peerDependencies":{"putout":">=37"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-convert-assignment-to-declaration@2.0.0","gitHead":"bf29335d297d40cc77c71a488cb9a8ee3aeb3f25","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.13.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-OQDSiBuy7aGrZcAn2deNUQcAnXbz0Jy0JTtXjhCce0xLiyqC/G29ZoKJqrkEqFISnmok0lD5Tr+oA9mK7IJ+6A==","shasum":"a279adf82f58f738a0b403d44f7929b49da553e9","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-assignment-to-declaration/download/@putout/plugin-convert-assignment-to-declaration-2.0.0.tgz","fileCount":4,"unpackedSize":5082,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHeMRvasCZjNBdjKviBVjyXmIdx2B4iD3cxFdPXBdgQqAiEA2IAGHqwbJaNa7gUNXP6RYOpAaQm+NBE6j/g3Zzd1VrQ="}],"size":2370,"noattachment":false,"key":"/@putout/plugin-convert-assignment-to-declaration/-/@putout/plugin-convert-assignment-to-declaration-2.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-convert-assignment-to-declaration_2.0.0_1737584654258_0.9460687126397511"},"_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\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":1737584654483,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1737584654483,"dist-tags":{"latest":"2.0.1"}}