{"name":"@putout/plugin-apply-arrow","version":"1.3.0","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.3.0","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":"b3cf8ca27c3673036b1fc04dcf14c1a941776c09","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-arrow/download/@putout/plugin-apply-arrow-1.3.0.tgz","fileCount":4,"integrity":"sha512-IjQzazlN7xOvYGW2cwePZIrcjxifUtgbp3Lva9oa9MHmdGPzPi4TkaxIN0YgF84e1ImzfN5TIXYAiIs2moucpw==","signatures":[{"sig":"MEUCIQCnwYvin4WvDrLKnnFIu3QzVVaa+SMxf/X1S7OsRnwRUAIgVl2oz+nZXzsC5KAU7M3BQ1pdwZ4ogVvvvSnwHM2p17Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5266,"size":2468,"noattachment":false,"key":"/@putout/plugin-apply-arrow/-/@putout/plugin-apply-arrow-1.3.0.tgz"},"main":"lib/apply-arrow.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"026b97056ab991100e079c912840f80adfbf1feb","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.13.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.3.0_1736452145646_0.5867086357148754","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":1736452145841,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1736452145841,"dist-tags":{"latest":"3.0.0"}}