@putout/plugin-convert-expression-to-params
v1.0.3
Published
šPutout plugin adds ability to convert 'apply' to 'spread'
Maintainers
Readme
@putout/plugin-convert-expression-to-params 
Uncaught SyntaxError: Malformed arrow function parameter listoccurs when your function declaration is missing valid parameters.(c) MDN
šPutout plugin adds ability to fix SyntaxError: missing formal parameter .
Checkout in šPutout Editor.
Install
npm i @putout/plugin-convert-expression-to-params -DRule
{
"rules": {
"convert-expression-to-params": "on"
}
}ā Example of incorrect code
(__a, __b) => __b + __a;
(__a, __b) => __b + __a;
(__a, hello, world) => __a;ā Example of correct code
(__a, hello, world) => __a;
(__a, __b) => __b + __a;
(__a, __b) => __b + __a;License
MIT
