{"name":"@putout/plugin-remove-unreferenced-variables","version":"3.0.0","keywords":["putout","putout-plugin","putout-plugin-remove","plugin","remove","unreferenced","variables"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-unreferenced-variables@3.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-unreferenced-variables#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"a5011995df7c65c28ba68d4d3e36cd307d95f58c","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-unreferenced-variables/download/@putout/plugin-remove-unreferenced-variables-3.0.0.tgz","fileCount":4,"integrity":"sha512-fZ9BTWzeIGEhgm3lLJ7avNOAycj9eYZhVBwIvhWdOTDTefwshQ06WHvavXbSKZ0BhnIj7nigS2RHHHi4gzOo+w==","signatures":[{"sig":"MEYCIQCv08LjjkYneaQqYaHvFMvA+OmmUAmVjhktBcF+CCkOYQIhAK3YkyGXOB+RDDg9O8ctYRre3niLEy1sHrxXqPOQXDJ1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5016,"size":2201,"noattachment":false,"key":"/@putout/plugin-remove-unreferenced-variables/-/@putout/plugin-remove-unreferenced-variables-3.0.0.tgz"},"main":"lib/remove-unreferenced-variables.js","type":"commonjs","engines":{"node":">=16"},"gitHead":"1741507773f57f735e98a495c7742bae95d60439","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":"9.6.6","description":"🐊Putout plugin adds ability to find and remove unreferenced variables","directories":{},"_nodeVersion":"20.4.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^8.0.0","eslint":"^8.0.1","madrun":"^9.0.0","@putout/test":"^7.0.0","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^18.0.0","@putout/plugin-for-of":"*","@putout/plugin-minify":"*"},"peerDependencies":{"putout":">=30"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-unreferenced-variables_3.0.0_1688989443756_0.7297038659009909","host":"s3://npm-registry-packages"},"readme":"# @putout/plugin-remove-unreferenced-variables [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-unreferenced-variables.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-unreferenced-variables \"npm\"\n\n> A **variable** is a named reference to a **value**.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Glossary/Variable)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to find and remove **variables** without **references**.\n\n## Install\n\n```\nnpm i @putout/plugin-remove-unreferenced-variables -D\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-unreferenced-variables\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nlet a;\nlet b;\n\na = 5;\nb = 6;\n\nconsole.log(a);\n```\n\n## ✅ Example of correct code\n\n```js\nlet a;\n\na = 5;\n\nconsole.log(a);\n```\n\n## License\n\nMIT\n","publish_time":1688989443910,"_cnpm_publish_time":1688989443910,"dist-tags":{"latest":"6.0.1"}}