{"name":"@putout/plugin-remove-useless-map","version":"3.0.0","keywords":["putout","putout-plugin","plugin","map","useless"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-useless-map@3.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-map#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"8302eed3a06f777f3328935cf286b974ee39d294","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-useless-map/download/@putout/plugin-remove-useless-map-3.0.0.tgz","fileCount":4,"integrity":"sha512-+RHlCzoMXbTNlI/bltftQRopM8mlWwjL0bX7fv957nYQfRCy1q7qZB0imkgcSYJDRSufoRk0+Xtg33wl+VAxNg==","signatures":[{"sig":"MEUCIGZK8H84bjrdnYM5ldCWVIiBx/ZxWOeofKl7Iw994xHJAiEAg5YRK2ljnxtO3M8wHETg8w4A/CbaPiQVQsNx3F5FYX8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4421,"size":2127,"noattachment":false,"key":"/@putout/plugin-remove-useless-map/-/@putout/plugin-remove-useless-map-3.0.0.tgz"},"main":"lib/remove-useless-map.js","type":"module","engines":{"node":">=22"},"gitHead":"f12b9685be32e1c0f056b39c5aeae0059055b54e","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":"11.4.2","description":"🐊Putout plugin adds ability to remove useless `.map`","directories":{},"_nodeVersion":"25.6.0","dependencies":{"eslint-plugin-putout":"^30.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^10.0.0-alpha.0","madrun":"^12.0.0","@putout/test":"^15.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^4.0.0"},"peerDependencies":{"putout":">=41"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-useless-map_3.0.0_1770242838956_0.02700939865446239","host":"s3://npm-registry-packages-npm-production"},"readme":"# @putout/plugin-remove-useless-map [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-useless-map.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-useless-map \"npm\"\n\n> The `map()` method creates a new array populated with the results of calling a provided function on every element in the calling array.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to remove useless `map()`.\n\n## Install\n\n```\nnpm i @putout/plugin-remove-useless-map\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-useless-map\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst [str] = lines.map((line) => `hello ${line}`);\n\nconst x = array.map((a) => a);\n\nObject\n    .entries(a)\n    .map(([a, b]) => [a, b]);\n```\n\n## ✅ Example of correct code\n\n```js\nconst [line] = lines;\nconst str = `hello ${line}`;\n\nconst x = array;\n```\n\n## License\n\nMIT\n","publish_time":1770242839098,"_cnpm_publish_time":1770242839098,"dist-tags":{"latest":"3.0.1"}}