🐊Putout plugin adds ability to convert Function Declaration to Arrow Function
npm install @putout/plugin-apply-arrow[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-apply-arrow.svg?style=flarrow&longCache=true
[NPMURL]: https://npmjs.org/package/@putout/plugin-apply-arrow "npm"
> An arrow function expression is a compact alternative to a traditional function expression, with some semantic differences and deliberate limitations in usage:
>
> (c) MDN
🐊Putout plugin adds ability to convert Function Declaration to Arrow Function. Checkout in 🐊Putout Editor.
```
npm i @putout/plugin-apply-arrow
`json`
{
"rules": {
"apply-arrow": ["on", {
"maxSize": 30
}]
}
}
`js`
export function replace() {
return {
'if __a > __b': 'if (__a > __b)',
};
}
`js``
export const replace = () => ({
'if __a > __b': 'if (__a > __b)',
});
MIT