{"name":"@putout/plugin-remove-useless-computed","version":"1.0.1","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless `computed`","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-computed#readme","main":"lib/remove-useless-computed.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","computed","useless"],"devDependencies":{"@putout/eslint-flat":"^4.0.0","@putout/test":"^15.0.0","eslint":"^10.0.0","eslint-plugin-putout":"^31.0.0","madrun":"^13.0.0","superc8":"^12.0.0"},"peerDependencies":{"putout":">=42"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"gitHead":"0db3adf6a641e2bb7ce6d37b21ecb18e39085735","_id":"@putout/plugin-remove-useless-computed@1.0.1","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"26.7.0","_npmVersion":"12.0.2","dist":{"integrity":"sha512-gm5L/bf8WIxjP/E7IIIW/HVacjOWOK3JSugHWigmI9iG607SyE/zKGhsnbnt1CBvnC1OF9p6srcxf1Zu1rRa0g==","shasum":"7f2f82d199d30a20b78045c4a185212ff462f9d9","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-useless-computed/download/@putout/plugin-remove-useless-computed-1.0.1.tgz","fileCount":4,"unpackedSize":4657,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCBaZRGSyvElUvyn/9GjmwvFjaBtUkaF8CYm67EGeNS6QIgOtYD/Z4rvI6UMymXr4PvYiI2TeAliuGc0F5rTUp4Kuc="}],"size":2252,"noattachment":false,"key":"/@putout/plugin-remove-useless-computed/-/@putout/plugin-remove-useless-computed-1.0.1.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-computed_1.0.1_1787493689134_0.9572071913711373"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-remove-useless-computed [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-useless-computed.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-useless-computed \"npm\"\n\n> The object initializer syntax also supports computed property names. That allows you to put an expression in square brackets `[]`, that will be computed and used as the property name.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to remove useless `computed`.\n\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/8ff1cbbd86b05b26ab8869aaadfd5ee9/ae1897595cebc256b7aa1534cfab2994621c1641).\n\n## Install\n\n```\nnpm i @putout/plugin-remove-useless-computed\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-useless-computed\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nexport const replace = {\n    ['section(\"@select\", select(__args))']: ({__args}, path) => {\n        __args.unshift(identifier('id'));\n        return path;\n    },\n};\n```\n\n## ✅ Example of correct code\n\n```js\nexport const replace = {\n    'section(\"@select\", select(__args))': ({__args}, path) => {\n        __args.unshift(identifier('id'));\n        return path;\n    },\n};\n```\n\n## Comparison\n\nLinter | Rule | Fix\n--------|-------|------------|\n🐊 **Putout** | [`remove-useless-computed`](https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-computed#readme) | ✅\n⏣ **ESLint** | [`no-useless-computed-key`](https://eslint.org/docs/rules/no-useless-computed-key) | ✅\n\n## License\n\nMIT\n","publish_time":1787493689295,"_cnpm_publish_time":1787493689295,"dist-tags":{"latest":"1.0.1"}}