{"name":"@putout/plugin-remove-useless-arguments","version":"9.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to find and remove useless arguments","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-arguments#readme","main":"lib/remove-useless-arguments.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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","remove","useless","arguments"],"devDependencies":{"@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":">=36"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-remove-useless-arguments@9.0.0","gitHead":"7919ac5b5c91e6187bfc4bfce75610ebeb6a0618","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"18.20.4","_npmVersion":"10.8.2","dist":{"integrity":"sha512-+t52suTlLsmDx7p27voVch0MeQEy9himjB7hqgrab1BhSYigu88OQhNy6l7xGnIpkmvw1vu3Npn1aDudz3AEAg==","shasum":"5859073e3d41bc08f6bc0f3b69c7815e02698dd0","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-useless-arguments/download/@putout/plugin-remove-useless-arguments-9.0.0.tgz","fileCount":7,"unpackedSize":10421,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCH3xrFP5poHoBs07nyBs47Ci4xNyizh56Fgk3WZWJ/h4CIQCrIT+VaIfA8eABP1Gc8ox1Xfji32d5MEdStKydwvxQAA=="}],"size":3466,"noattachment":false,"key":"/@putout/plugin-remove-useless-arguments/-/@putout/plugin-remove-useless-arguments-9.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-remove-useless-arguments_9.0.0_1726059454362_0.44545211107043925"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-remove-useless-arguments [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-useless-arguments.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-useless-arguments\"npm\"\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to find and remove useless `arguments`.\n\n## Install\n\n```\nnpm i @putout/plugin-remove-useless-arguments\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-useless-arguments/arguments\": \"on\",\n        \"remove-useless-arguments/destructuring\": \"on\",\n        \"remove-useless-arguments/method\": \"on\"\n    }\n}\n```\n\n## arguments\n\n### ❌ Example of incorrect code\n\n```js\nconst sum = (a, b) => {}; // destructuring\nsum(a, b, c);\n```\n\n### ✅ Example of correct code\n\n```js\nconst sum = (a, b) => {};\nsum(a, b, c);\n```\n\n### destructuring\n\n### ❌ Example of incorrect code\n\n```js\nonIfStatement({\n    push,\n    generate,\n    abc,\n    helloworld,\n});\n\nfunction onIfStatement({push}) {}\n```\n\n### ✅ Example of correct code\n\n```js\nonIfStatement({\n    push,\n});\n\nfunction onIfStatement({push}) {}\n```\n\n### method\n\nCheck it out in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/362c37e9f533299a7e721ac46f936801/0a47d094bd2a048eb6dcc224b808a63f2d076ccb).\n\n### ❌ Example of incorrect code\n\n```js\nclass Parser {\n    parseStatement(context, topLevel, exports) {\n        this.parseGuard(a, b);\n    }\n    \n    parseGuard() {}\n}\n```\n\n### ✅ Example of correct code\n\n```js\nclass Parser {\n    parseStatement(context, topLevel, exports) {\n        this.parseGuard();\n    }\n    \n    parseGuard() {}\n}\n```\n\n## License\n\nMIT\n","publish_time":1726059454510,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1726059454510,"dist-tags":{"latest":"12.1.2"}}