{"name":"@putout/plugin-apply-arrow","version":"1.2.1","keywords":["putout","putout-plugin","plugin","arrow"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-apply-arrow@1.2.1","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-arrow#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"8a35c1f56f7cebc6c4b522dff189a3dcc824a9e3","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-arrow/download/@putout/plugin-apply-arrow-1.2.1.tgz","fileCount":4,"integrity":"sha512-CM81sVcVR72GJLQ94Cr9kU2OEUx+5baDLHIsa7J2vDbBH3T+Xwlf1IgDZje26Cw7MhatRtLY/NRw9MuPldMIlw==","signatures":[{"sig":"MEYCIQDMzB0NQBsRTHuWdhtsmFlaMkbq93oVP6eGC5F5vfRvigIhALR9z8yGpMclCcOHp99K6u2MvQmDVuxYcL20/SZHbn1Q","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5107,"size":2427,"noattachment":false,"key":"/@putout/plugin-apply-arrow/-/@putout/plugin-apply-arrow-1.2.1.tgz"},"main":"lib/apply-arrow.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"7e8a0a3663247cdd6112cd4ee5bf4b8d13115009","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","warrowch:test":"madrun warrowch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"10.9.0","description":"🐊Putout plugin adds ability to convert Function Declaration to Arrow Function","directories":{},"_nodeVersion":"22.12.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","lerna":"^6.0.1","eslint":"^9.0.0","madrun":"^10.0.0","nodemon":"^3.0.1","@putout/test":"^11.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0"},"peerDependencies":{"putout":">=37"},"_npmOperationalInternal":{"tmp":"tmp/plugin-apply-arrow_1.2.1_1736077366457_0.05986031290008387","host":"s3://npm-registry-packages-npm-production"},"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":1736077366631,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1736077366631,"dist-tags":{"latest":"3.0.0"}}