cmstead / js-codeformer

A JS refactoring and code automation tool for building better source
MIT License
28 stars 2 forks source link

Request: Positional parameters -> Options object #16

Closed cmstead closed 3 years ago

cmstead commented 3 years ago

This is a quick and dirty migration of a JS Refactor enhancement request. Please see the following link for details:

https://github.com/cmstead/js-refactor/issues/99

cmstead commented 3 years ago

The parameter portion of this request is complete: Toggle function parameter declaration type

This allows the developer to toggle between positional parameters and destructured parameters.

The new feature is available in the latest release:

https://github.com/cmstead/js-codeformer/releases/tag/v1.3.0

cmstead commented 3 years ago

The function call arguments portion of this is now complete.

This allows the developer to toggle function call arguments between positional parameters and an object. The generated object will, of course, need names for all values, so each new property is tab-stopped.

It is available in the latest release:

https://github.com/cmstead/js-codeformer/releases/tag/v1.6.1