{"name":"@putout/plugin-remove-unused-private-fields","version":"3.0.0","keywords":["putout","putout-plugin","plugin","remove","unused","private","fields"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-unused-private-fields@3.0.0","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-unused-private-fields#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"7bca0c27cf08f1b5188741a9aefbb998cbd7e786","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-unused-private-fields/download/@putout/plugin-remove-unused-private-fields-3.0.0.tgz","fileCount":4,"integrity":"sha512-N7RrZpN3wWY60uv798I9uGESquBKre6YJ77j5Q4vlRJGDm6AyWzTxxqNglKwDDgnzXe0fzLrRN8RQ+gKnv7DvQ==","signatures":[{"sig":"MEUCIQDPiIgQ1+/MbD0mUYV8QqeUkiMgHfs6ON+dJ0KaPJmgIQIgJDpmivQKHBRKui3EhV4ds1MBGJ/9nmVUkZCatDG3B1M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6289,"size":2585,"noattachment":false,"key":"/@putout/plugin-remove-unused-private-fields/-/@putout/plugin-remove-unused-private-fields-3.0.0.tgz"},"main":"lib/remove-unused-private-fields.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"e11df2766f1b652671818cd0fe217b879f5f4f74","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 remove unused private fields","directories":{},"_nodeVersion":"22.13.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","lerna":"^6.0.1","eslint":"^9.0.0","madrun":"^10.0.0","nodemon":"^3.0.1","@putout/test":"^11.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^24.0.0"},"peerDependencies":{"putout":">=38"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-unused-private-fields_3.0.0_1739467323736_0.7431944019670673","host":"s3://npm-registry-packages-npm-production"},"readme":"# @putout/plugin-remove-unused-private-fields [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-unused-private-fields.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-unused-private-fields\"npm\"\n\n> **Class fields** are **public** by default, but **private class members** can be created by using a hash **`#`** prefix. The privacy encapsulation of these **class** features is enforced by **JavaScript** itself.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_class_fields)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to remove unused private fields.\n\n## Install\n\n```\nnpm i @putout/plugin-remove-unused-private-fields\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-unused-private-fields\": \"on\"\n    }\n}\n```\n\n## ❌ Incorrect code example\n\n```js\nclass Hello {\n    #a = 5;\n    #b = 3;\n    get() {\n        return this.#a;\n    }\n}\n```\n\n## ✅ Correct code Example\n\n```js\nclass Hello {\n    #a = 5;\n    get() {\n        return this.#a;\n    }\n}\n```\n\n## Comparison\n\nLinter | Rule | Fix\n--------|-------|------------|\n🐊 **Putout** | [`remove-unused-private-fields`](https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-unused-private-fields#readme) | ✅\n⏣ **ESLint** | [`no-unused-private-class-members`](https://eslint.org/docs/rules/no-unused-private-class-members) | ❌\n\n## License\n\nMIT\n","publish_time":1739467323931,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1739467323931,"dist-tags":{"latest":"4.0.0"}}