{"name":"@putout/plugin-apply-arrow","version":"1.5.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.5.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":"6298ff9cde7333b59df7085a338b60c2e18e2c2e","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-arrow/download/@putout/plugin-apply-arrow-1.5.0.tgz","fileCount":4,"integrity":"sha512-/SnkK7Ern89BUOEIkg/mLmNvfAVPsVNM2eXxfbmqCGDawQm8vwPcelW4mJIkIMCskESuiLBm22td92HIgAte3Q==","signatures":[{"sig":"MEYCIQCIpkQVxb/ivUbQ7tmKe3pa95ZUk1uUO8+Yu4GBGGf57gIhAKzjwWoy2LRld/JDSYe1jT7xUO4lydJFH/OaTwNEBro2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5646,"size":2563,"noattachment":false,"key":"/@putout/plugin-apply-arrow/-/@putout/plugin-apply-arrow-1.5.0.tgz"},"main":"lib/apply-arrow.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"bbd0cd64a76568d53369c5d5eedcd78486324005","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.5.0_1737210941745_0.007319216647658111","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":1737210941933,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1737210941933,"dist-tags":{"latest":"3.0.0"}}