{"name":"@putout/plugin-apply-arrow","version":"2.0.0","type":"commonjs","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":"^2.0.0","@putout/test":"^12.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^25.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=38"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-apply-arrow@2.0.0","gitHead":"f5fc02018a52daa34f097107eec526f25737b29a","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.14.0","_npmVersion":"11.1.0","dist":{"integrity":"sha512-PEJeoYrbhsrdoqlGtdK2K2nuICabKutdUppb/70lo7OvvA9WzR1rHTQ0aN4FEtY03lpk4Tr8QHhPpS8a0PL3Mw==","shasum":"90cf335c3983839bc4b7b72097aad1fe1107896d","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-arrow/download/@putout/plugin-apply-arrow-2.0.0.tgz","fileCount":4,"unpackedSize":5667,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBxvNOwz52I7aRk3cs4PrjwDJWE3Zbc/l2XTWWxDAcCYAiEA8rva8jXJSkxEJnkaQjasnu1k5M6htW2F+/qBWGIwceM="}],"size":2565,"noattachment":false,"key":"/@putout/plugin-apply-arrow/-/@putout/plugin-apply-arrow-2.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-apply-arrow_2.0.0_1740862086014_0.1532795028779026"},"_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":1740862086186,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1740862086186,"dist-tags":{"latest":"3.0.0"}}