{"name":"@putout/plugin-apply-arrow","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 convert Function Declaration to Arrow Function","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-arrow#readme","main":"lib/apply-arrow.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","warrowch:test":"madrun warrowch: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","arrow"],"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","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=40"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-apply-arrow@3.0.0","gitHead":"06494c4bdd00a09df5e855a10aeb32d5e9c1b4c2","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"23.11.0","_npmVersion":"11.1.0","dist":{"integrity":"sha512-g/shasCM07BTboldYdQeVRDNTf458KBdKfVTI6dXJQA9Fa9sCRBZKCddriNX3TeTxgC4oTX7frM2RKNVVBk46Q==","shasum":"0fccf40aa8c9f1ba315ad49e0f7763f3f965b770","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-arrow/download/@putout/plugin-apply-arrow-3.0.0.tgz","fileCount":4,"unpackedSize":5640,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCOvN5nWpRJb2e2OFSPaL0D1y/UFcItXQCCLW4GIuLEKgIgJhPB1gdPvf8FpIZuB8JkcgfNtJVtil1yR7CHFj32RxQ="}],"size":2545,"noattachment":false,"key":"/@putout/plugin-apply-arrow/-/@putout/plugin-apply-arrow-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-apply-arrow_3.0.0_1746461507555_0.22106487118800455"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-apply-arrow [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-apply-arrow.svg?style=flarrow&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-apply-arrow \"npm\"\n\n> An arrow function expression is a compact alternative to a traditional function expression, with some semantic differences and deliberate limitations in usage:\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to convert Function Declaration to Arrow Function. Checkout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/828228d2515805afc682eab0fe0a4105/a2c6507dd197d04cbbd387e4fb414ef6548234cf).\n\n## Install\n\n```\nnpm i @putout/plugin-apply-arrow\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"apply-arrow\": [\"on\", {\n            \"maxSize\": 30\n        }]\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nexport function replace() {\n    return {\n        'if __a > __b': 'if (__a > __b)',\n    };\n}\n```\n\n## ✅ Example of correct code\n\n```js\nexport const replace = () => ({\n    'if __a > __b': 'if (__a > __b)',\n});\n```\n\n## License\n\nMIT\n","publish_time":1746461507742,"_cnpm_publish_time":1746461507742,"dist-tags":{"latest":"3.0.0"}}