{"name":"@putout/plugin-remove-useless-map","version":"3.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 `.map`","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-map#readme","main":"lib/remove-useless-map.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","map","useless"],"devDependencies":{"@putout/eslint-flat":"^4.0.0","@putout/test":"^15.0.0","c8":"^10.0.0","eslint":"^10.0.0","eslint-plugin-n":"^17.0.0","madrun":"^12.0.0"},"peerDependencies":{"putout":">=41"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-remove-useless-map@3.0.1","gitHead":"32f4825bf05f9c899bdf5064a9ad144f76f1d766","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.6.1","_npmVersion":"11.4.2","dist":{"integrity":"sha512-b5Odr35fapN46hAGMHaHd8b8fckdKlsJuzmvr7f91cFIj/Fbl/14Tm4SIP0d0mEBWDkX7jVNcbRVtbRZ2BrTnw==","shasum":"599a92a1c7ede29a9e4ab49f63c1d5c952eeea35","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-useless-map/download/@putout/plugin-remove-useless-map-3.0.1.tgz","fileCount":4,"unpackedSize":4372,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCl40+xMONG38ZDQGSKNZEIwTlTT/g6ZmykDQdIlUYtIgIhAOtsSUlELobkZjfK6vW8hU0DNGbhv20CX1WxllW+25xo"}],"size":2118,"noattachment":false,"key":"/@putout/plugin-remove-useless-map/-/@putout/plugin-remove-useless-map-3.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-map_3.0.1_1771005102973_0.15070296793983795"},"_hasShrinkwrap":false,"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":1771005103114,"_cnpm_publish_time":1771005103114,"dist-tags":{"latest":"3.0.1"}}