@putout/plugin-convert-expression-to-params
🐊Putout plugin adds ability to convert 'apply' to 'spread'
Last updated a year ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @putout/plugin-convert-expression-to-params 
SYNC missed versions from official npm registry.

@putout/plugin-convert-expression-to-params NPM version

Uncaught SyntaxError: Malformed arrow function parameter list occurs when your function declaration is missing valid parameters.

(c) MDN

????Putout plugin adds ability to fix SyntaxError: missing formal parameter . Checkout in ????Putout Editor.

Merged with @putout/plugin-arguments.

Install

npm i @putout/plugin-convert-expression-to-params -D

Rule

{
    "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

Current Tags

  • 1.0.4                                ...           latest (2 months ago)

5 Versions

  • 1.0.4                                ...           2 months ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |