You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to have an option not to inline a single-line function, even if the line length allows it.
This will be useful, for example, when a single-line arrow functions are not used in place, but are moved to a separate file. You want to keep it visually clean (no braces and returns), but at the same time keep a uniform style for all exported functions for quick visual search (the signature and body of the function on different lines).
Found many issues about the position of the body of a single-line arrow function. If you look at the usage, it becomes clear that in some cases it is better to move the function body to the next line, and in some cases it is not. So the maintain parameter will be very useful!
It would be great to have an option not to inline a single-line function, even if the line length allows it.
This will be useful, for example, when a single-line arrow functions are not used in place, but are moved to a separate file. You want to keep it visually clean (no braces and returns), but at the same time keep a uniform style for all exported functions for quick visual search (the signature and body of the function on different lines).
The first two functions will become one-line functions, which I would like to avoid:
It can be
singleBodyPosition.arrowFunction
option or maybe something elseThe text was updated successfully, but these errors were encountered: