{"name":"@putout/plugin-remove-useless-operand","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 operand","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-operand#readme","main":"lib/remove-useless-operand.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","operand","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-operand@3.0.0","gitHead":"919de1f34bd8b6e091913b24ddb7b17516c4f2d3","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"23.11.0","_npmVersion":"11.1.0","dist":{"integrity":"sha512-GwZFBteXeUrCx1zS8T9eFclNduOEgo61E9/pRDi8sjbsq3tD0r2Oty6JV81a9hrK+8kpWhFWxT+0buKjgB+WxA==","shasum":"89e24b1b5b86dbd14be60b52806de9eb771cddf5","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-useless-operand/download/@putout/plugin-remove-useless-operand-3.0.0.tgz","fileCount":4,"unpackedSize":4746,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD94PFOmaYDI4m3Jh8e1PR6iw7HycAdV6yuo4B421P37AIgcQImrgSLCPJxIWZrQDe09lWl75QiAohZDm58qakS8xw="}],"size":2162,"noattachment":false,"key":"/@putout/plugin-remove-useless-operand/-/@putout/plugin-remove-useless-operand-3.0.0.tgz"},"_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-operand_3.0.0_1746975668690_0.9080445985834755"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-remove-useless-operand [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-useless-operand.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-useless-operand \"npm\"\n\n> The [**increment operator**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Increment) (`++`) adds one to its operand and returns a value.\n>\n> The [**addition assignment operator**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Addition_assignment) (`+=`) adds the value of the right operand to a variable and assigns the result to the variable.\n>\n> (c) MDN\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to remove useless **operand**.\n\n## Install\n\n```\nnpm i @putout/plugin-remove-useless-operand\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-useless-operand\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\na = a + b;\na = b + a;\nb += 1;\n```\n\n## ✅ Example of correct code\n\n```js\na += b;\n++b;\n```\n\n## License\n\nMIT\n","publish_time":1746975668855,"_cnpm_publish_time":1746975668855,"dist-tags":{"latest":"3.0.0"}}