{"_id":"@putout/plugin-remove-useless-constructor","_rev":"6-94d0c3f0f17b02f28d79a8f8c68e42ec","name":"@putout/plugin-remove-useless-constructor","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"@putout/plugin-remove-useless-constructor","version":"1.0.0","keywords":["putout","putout-plugin","plugin","constructor","useless"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-useless-constructor@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-constructor#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"4e9cb123235d143c9fc51dc67802e388d54a0d69","tarball":"https://registry.npmjs.org/@putout/plugin-remove-useless-constructor/-/plugin-remove-useless-constructor-1.0.0.tgz","fileCount":4,"integrity":"sha512-K/HAWhsO65T1pPkYjHEH1u8pG7sz69sqzU509b4mWQx6C4rWNRCEkucuF1MQT2eNaawrHE+TUfzJOWoQ2J90vw==","signatures":[{"sig":"MEUCIQCbC49fkqVNLJgD4IcPEedo9uHs1L93EZVlKbIYnjpK/QIgKjEVadXf24ntGW/bbhD8nnehWi2Dx3558IgbvXq9liM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4231,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2XmtCRA9TVsSAnZWagAATa4QAIibI6CClI6XqLERH7ZE\nZwSGydy8Xz73xPCpr3XYHkoyJ6Jg5s53/cbv/kKnAA5tqJyAAigCcQ0nBrPj\nGIs6zTt8ctKjbjtYZZGDu/9Pve/IjuMLfObHoYUwXx9GXmfMqxBkeSRL+tXH\neDaNdn88QVLHUOI4d/1bqH47me9ZWKJ/hB4SAFNXNDDJx5V1WyIvGL+BX2e9\npEsfCXFSCMUzXg5rdbp7QdETiauJIj3a+w+9p2gSDJd3nxMaCDtk6B0cTK0C\nlxSyDJDKxqwCTfVYT5LFL0AwC0vfxT1h4lNcbJSDBPMipxp1IvowCkJeCWo6\nf5qpolD5tfnTaNRVbZH8z/Vcfjto/2+vv0bZlhiyIPAwlgjVvf6dfNyvCLow\niUP04preSHa3qkdG/VkcIYNSg0rQ27eMb0o0ZjjZsyo5olMknJIfTxr8DiZT\nkEMDvvcbzSGjR4Gx8s4wFn26SwHVu+ZZg/ENodjnQnRmN5VWAEWVsdF6F3tE\nLGCVhaYAeprNyIneBWUgChHv0Y+6qRhYMaduo/R5/GoXYw3LbiTAuwX2KJyC\nFbUNL7bwyYLEFjWuTiyocerWc4cpRVZkq8JZwFcHBIJSyNactYXzoYsuYCgv\nUqRw1jo1JKcolPMAV7+mASlumPXbrzPNz0DK1gDmA9+KilD3l+UW3SQz3W5f\nu4pU\r\n=3oz1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/remove-useless-constructor.js","engines":{"node":">=14"},"gitHead":"4d5176540160ac9e1cee2628decbbae43b938183","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","publishOnly":"madrun publishOnly"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"7.24.0","description":"putout plugin adds ability to remove useless constructor","directories":{},"_nodeVersion":"16.10.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.5.0","eslint":"^8.0.0-beta.0","madrun":"^8.0.1","@putout/test":"^3.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^10.0.0"},"peerDependencies":{"putout":">=16"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-useless-constructor_1.0.0_1633268459663_0.9478851857079644","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@putout/plugin-remove-useless-constructor","version":"1.0.1","keywords":["putout","putout-plugin","plugin","constructor","useless"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-useless-constructor@1.0.1","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/v35.37.1/packages/plugin-remove-useless-constructor#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"41443573b1a3870c9d42be488c45ccb83b778dd3","tarball":"https://registry.npmjs.org/@putout/plugin-remove-useless-constructor/-/plugin-remove-useless-constructor-1.0.1.tgz","fileCount":4,"integrity":"sha512-qfIR/PDKq9jTMt+Hc92oN459ZhQuiK0tHNDF0OeN4qGfrzikKfd1xJOFsfKKXXqoRK9zY8N/J7H/H37rQZMKMQ==","signatures":[{"sig":"MEQCIBR6gu0s7l91my2aibHslVKTy+7jcJy1+jEemOj1CdSPAiADAFC1JAo2lLgXHdUO5hBrXxdYtNRLPZRLqZ/aINEgug==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4115},"main":"lib/remove-useless-constructor.js","type":"commonjs","engines":{"node":">=14"},"gitHead":"105184bb6ab5053a9857e1367d2463acc74b5ebe","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","publishOnly":"madrun publishOnly"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"10.8.2","description":"🐊Putout plugin adds ability to remove useless constructor","directories":{},"_nodeVersion":"22.8.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":">=16"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-useless-constructor_1.0.1_1727099018151_0.21477174328132276","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@putout/plugin-remove-useless-constructor","version":"2.0.0","keywords":["putout","putout-plugin","plugin","constructor","useless"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-useless-constructor@2.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-constructor#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"6239b11dda02cbb8fe43f9a7154e76ea64725453","tarball":"https://registry.npmjs.org/@putout/plugin-remove-useless-constructor/-/plugin-remove-useless-constructor-2.0.0.tgz","fileCount":4,"integrity":"sha512-nssmppJkz2d0xTzmPKIMtFgAyicRff4q9VuwLRahnUZ8NPN6kVdMoXb73VGy7ZYd5nMlGg/rxaF0hgZPqQ2R8Q==","signatures":[{"sig":"MEUCIQCg+DgfvgWw9Y2urMGA0LK1ChS7OxWS4M3Z451m5XaJTwIgEE0p10LBKGa+O4bN3tl0pPnQcV4OM/AjOGbGCzfr9Qs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4283},"main":"lib/remove-useless-constructor.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"d79864e3020b63800295c2462efc6188c35cff56","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","publishOnly":"madrun publishOnly"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"10.8.2","description":"🐊Putout plugin adds ability to remove useless constructor","directories":{},"_nodeVersion":"22.8.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":">=36"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-useless-constructor_2.0.0_1727101021415_0.2897524262678228","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@putout/plugin-remove-useless-constructor","version":"3.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless constructor","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-constructor#readme","main":"lib/remove-useless-constructor.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","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","constructor","useless"],"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":">=40"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-remove-useless-constructor@3.0.0","gitHead":"b08cf3fc670ff0aba730be54558ac2d9ea60f5bb","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"23.11.0","_npmVersion":"11.1.0","dist":{"integrity":"sha512-+02up8lJLRfMTZA4lNRk0ivMlvaMB95Pin0exCAd5ksIG4RQ6mOrPtR7yaPvraDAqMrSsOR07ZZFKg/WejhCMw==","shasum":"c3012a7d132e159cd3fa4d737f71d6ca42d31035","tarball":"https://registry.npmjs.org/@putout/plugin-remove-useless-constructor/-/plugin-remove-useless-constructor-3.0.0.tgz","fileCount":4,"unpackedSize":4299,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCFYHkDNMFsCVmsXZsB2hKgM/3zQ/GVWxzdMGaBMBZI0gIgdZhRGssApYTRNV8TevbSbaTLuMwXm7CE0n6uPZkn07k="}]},"_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-remove-useless-constructor_3.0.0_1747305616919_0.017051172599741093"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-03T13:40:59.601Z","modified":"2025-05-15T10:40:17.409Z","1.0.0":"2021-10-03T13:40:59.840Z","1.0.1":"2024-09-23T13:43:38.385Z","2.0.0":"2024-09-23T14:17:01.645Z","3.0.0":"2025-05-15T10:40:17.177Z"},"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/master/packages/plugin-remove-useless-constructor#readme","keywords":["putout","putout-plugin","plugin","constructor","useless"],"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"description":"🐊Putout plugin adds ability to remove useless constructor","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"readme":"# @putout/plugin-remove-useless-constructor [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-useless-constructor.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-useless-constructor \"npm\"\n\n> The `constructor` method is a special method of a class for creating and initializing an object instance of that class.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/constructor)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to remove useless `constructor`.\nCheck out in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/4f23b20fe29ebaf9c691662846f75c0f/04a5f3c7ea0aba9dd9ed9fe76d957c29c46ef626).\n\n## Install\n\n```\nnpm i @putout/plugin-remove-useless-constructor\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-useless-constructor\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nclass A extends B() {\n    constructor(...args) {\n        super(...args);\n    }\n}\n```\n\n## ✅ Example of correct code\n\n```js\nclass A extends B() {}\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}