{"_id":"@putout/plugin-remove-useless-computed","_rev":"2-c9dbc08efd6035dd83d0822b1c0362b7","name":"@putout/plugin-remove-useless-computed","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@putout/plugin-remove-useless-computed","version":"1.0.0","keywords":["putout","putout-plugin","plugin","computed","useless"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-useless-computed@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-computed#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"2bc0b851c89a7cc9ff6f8bea7ea0029c9a3e5213","tarball":"https://registry.npmjs.org/@putout/plugin-remove-useless-computed/-/plugin-remove-useless-computed-1.0.0.tgz","fileCount":4,"integrity":"sha512-GatWgkYy2syJ9akaiUFmWFbQO+YILWjdiChxDttOZgoy8jVsjdVN5chzcG8HZYXcok3XMcf1Ia2FPZmMByDbSw==","signatures":[{"sig":"MEYCIQDCFmgJ6QtEQ48Q8s++AR59ISo62Opud6PmSCVWYd18WgIhANz+SX4b7kv6UeVHs9N42lzQ8LZBkj0wTFvNcR2zEVvL","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4335},"main":"lib/remove-useless-computed.js","type":"module","engines":{"node":">=22"},"gitHead":"65a84f34472ebe90ecb10e0931fcc333609251b3","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+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"12.0.2","description":"🐊Putout plugin adds ability to remove useless `computed`","directories":{},"_nodeVersion":"26.7.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madrun":"^13.0.0","superc8":"^12.0.0","@putout/test":"^15.0.0","@putout/eslint-flat":"^4.0.0","eslint-plugin-putout":"^31.0.0"},"peerDependencies":{"putout":">=42"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-useless-computed_1.0.0_1786958217075_0.2902040345484813","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"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":"https://registry.npmjs.org/@putout/plugin-remove-useless-computed/-/plugin-remove-useless-computed-1.0.1.tgz","fileCount":4,"unpackedSize":4657,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCBaZRGSyvElUvyn/9GjmwvFjaBtUkaF8CYm67EGeNS6QIgOtYD/Z4rvI6UMymXr4PvYiI2TeAliuGc0F5rTUp4Kuc="}]},"_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}},"time":{"created":"2026-08-17T09:16:53.767Z","modified":"2026-08-23T14:01:29.538Z","1.0.0":"2026-08-17T09:16:57.242Z","1.0.1":"2026-08-23T14:01:29.295Z"},"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-computed#readme","keywords":["putout","putout-plugin","plugin","computed","useless"],"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"description":"🐊Putout plugin adds ability to remove useless `computed`","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"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","readmeFilename":"README.md"}