{"_id":"@putout/plugin-convert-assignment-to-declaration","_rev":"4-576304fef9fa9323f255805680faaa43","name":"@putout/plugin-convert-assignment-to-declaration","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"@putout/plugin-convert-assignment-to-declaration","version":"1.0.0","keywords":["putout","putout-plugin","plugin","convert","apply","spread"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-convert-assignment-to-declaration@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-assignment-to-declaration#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"f807c644a8eea5173c091e1a6599600cf78e8213","tarball":"https://registry.npmjs.org/@putout/plugin-convert-assignment-to-declaration/-/plugin-convert-assignment-to-declaration-1.0.0.tgz","fileCount":4,"integrity":"sha512-w6ckwZjKVlfc0lr1am7tTB07xX+M+MXZpf1oClhkzCpmujXGQ0Q997t8Dz1DSayjTCetE+M5nOoq34trNxypEA==","signatures":[{"sig":"MEUCIQC3SHLLNB1KGVEFG2RjzfY8O0Cf7lilsq/aOZfaJ35tggIgLaUgivDkawSqMVEl4CKCFDs2vAXHFDjedUwUtMSf2j8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4770},"main":"lib/convert-assignment-to-declaration.js","type":"commonjs","engines":{"node":">=16"},"gitHead":"4fe7d1ab4395b87b199d62fbfd9732ac13b768a2","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://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"10.8.1","description":"🐊Putout plugin adds ability to convert 'assignment' to 'declaration'","directories":{},"_nodeVersion":"22.3.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^10.0.0","@putout/test":"^10.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^22.0.0"},"peerDependencies":{"putout":">=35"},"_npmOperationalInternal":{"tmp":"tmp/plugin-convert-assignment-to-declaration_1.0.0_1718653294583_0.37563312810060423","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@putout/plugin-convert-assignment-to-declaration","version":"1.0.1","keywords":["putout","putout-plugin","plugin","convert","apply","spread"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-convert-assignment-to-declaration@1.0.1","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-assignment-to-declaration#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"8332a80e3dbfc6cc644965740960dafc157d61dd","tarball":"https://registry.npmjs.org/@putout/plugin-convert-assignment-to-declaration/-/plugin-convert-assignment-to-declaration-1.0.1.tgz","fileCount":4,"integrity":"sha512-Wy2SphR27qZdnwFc8iaroOIL8xk4LG0bifyAxXqbP0Ggk/kLzJe7Ht7ExYzDOmKw4pm96hUoP9JSIRzskafgrA==","signatures":[{"sig":"MEYCIQDIiOL6ZbAOClKaobv69kwcrofsu355hVqPZoYT4nkPeAIhAMvGJSlj2KjJqYYl9YXNLylwqOf09TwmP/EtPf0xUdS8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4780},"main":"lib/convert-assignment-to-declaration.js","type":"commonjs","engines":{"node":">=16"},"gitHead":"93463a29665b9ff0fa15ff2a364613da03629d5e","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://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"10.8.1","description":"🐊Putout plugin adds ability to convert 'assignment' to 'declaration'","directories":{},"_nodeVersion":"22.3.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^10.0.0","@putout/test":"^10.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^22.0.0"},"peerDependencies":{"putout":">=35"},"_npmOperationalInternal":{"tmp":"tmp/plugin-convert-assignment-to-declaration_1.0.1_1718796709887_0.8345086579502536","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@putout/plugin-convert-assignment-to-declaration","version":"2.0.0","keywords":["putout","putout-plugin","plugin","convert","apply","spread"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-convert-assignment-to-declaration@2.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-assignment-to-declaration#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"a279adf82f58f738a0b403d44f7929b49da553e9","tarball":"https://registry.npmjs.org/@putout/plugin-convert-assignment-to-declaration/-/plugin-convert-assignment-to-declaration-2.0.0.tgz","fileCount":4,"integrity":"sha512-OQDSiBuy7aGrZcAn2deNUQcAnXbz0Jy0JTtXjhCce0xLiyqC/G29ZoKJqrkEqFISnmok0lD5Tr+oA9mK7IJ+6A==","signatures":[{"sig":"MEUCIHeMRvasCZjNBdjKviBVjyXmIdx2B4iD3cxFdPXBdgQqAiEA2IAGHqwbJaNa7gUNXP6RYOpAaQm+NBE6j/g3Zzd1VrQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5082},"main":"lib/convert-assignment-to-declaration.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"bf29335d297d40cc77c71a488cb9a8ee3aeb3f25","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":"10.9.0","description":"🐊Putout plugin adds ability to convert 'assignment' to 'declaration'","directories":{},"_nodeVersion":"22.13.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^10.0.0","@putout/test":"^11.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0"},"peerDependencies":{"putout":">=37"},"_npmOperationalInternal":{"tmp":"tmp/plugin-convert-assignment-to-declaration_2.0.0_1737584654258_0.9460687126397511","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"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":"https://registry.npmjs.org/@putout/plugin-convert-assignment-to-declaration/-/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="}]},"_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}},"time":{"created":"2024-06-17T19:41:34.456Z","modified":"2025-03-24T17:47:05.587Z","1.0.0":"2024-06-17T19:41:34.761Z","1.0.1":"2024-06-19T11:31:50.061Z","2.0.0":"2025-01-22T22:24:14.483Z","2.0.1":"2025-03-24T17:47:05.385Z"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"license":"MIT","homepage":"https://github.com/coderaiser/putout/tree/v38.5.7/packages/plugin-convert-assignment-to-declaration#readme","keywords":["putout","putout-plugin","plugin","convert","apply","spread"],"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"description":"🐊Putout plugin adds ability to convert 'assignment' to 'declaration'","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"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","readmeFilename":"README.md"}