{"name":"@putout/plugin-convert-const-to-let","version":"4.2.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert 'const' to 'let'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-const-to-let#readme","main":"lib/convert-const-to-let.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","const","let","var","VariableDeclaration"],"devDependencies":{"@putout/plugin-split-variable-declarations":"*","@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-const-to-let@4.2.0","gitHead":"3b6d54e5aa61a23ffc71c673a30a95e4fb7c9dd0","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.13.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-m2+l2VyAHzeKPm5nWgW0KqEekaqWpH/EJbxWvtz58wXpnC1RR6YpW+JGQCp0cRJTIfO7xO3lqM4KVL34RZNDrA==","shasum":"02e01b9fa5112adc110e22610f2c133e3d45b3dc","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-const-to-let/download/@putout/plugin-convert-const-to-let-4.2.0.tgz","fileCount":4,"unpackedSize":5301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHisMysy3UH9KTEIUPmnZzNo+8vYmz9AKe9IzcEQsUgRAiEA0Cx1G+4RBJvsSvtWhjcayx8s8ivtNjfFZ3rfL0JJUCY="}],"size":2386,"noattachment":false,"key":"/@putout/plugin-convert-const-to-let/-/@putout/plugin-convert-const-to-let-4.2.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-convert-const-to-let_4.2.0_1737231130708_0.22912920555335603"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-convert-const-to-let [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-const-to-let.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-const-to-let \"npm\"\n\n> The `TypeError` object represents an error when attempting to modify a value that cannot be changed.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to convert `const` to `let` to avoid `TypeError`.\nCheck out in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/61ffff64a356c47e66af4ea17a9a755d/e7f5fa455c208a7faa9319d94130996d39afcbf7).\n\n## Install\n\n```\nnpm i @putout/plugin-convert-const-to-let -D\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"convert-const-to-let\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst a = 5;\n\na = 3;\n```\n\n## ✅ Example of correct code\n\n```js\nlet a = 5;\n\na = 3;\n```\n\n## License\n\nMIT\n","publish_time":1737231130874,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1737231130874,"dist-tags":{"latest":"5.0.1"}}