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
The following code is formatted with the first line of the arrow function on the next line, instead of the line it was at with the old style, even though that first line would definitely fit on one line.
This is a bit of a disruptive change, as it introduces an odd indentation for code that is otherwise fine to read.
I am aware that this is opinionated, but I think that fixing this is probably good for readability.
I have also seen frustration from other devs about this change, so maybe we can correct it?
The "workaround" is just to use a block body in this case, but some people probably prefer arrow functions over block bodies.
While the new formatting style is a step in the right direction, I have seen it do something odd for arrow functions.
Considering the following settings:
The following code is formatted with the first line of the arrow function on the next line, instead of the line it was at with the old style, even though that first line would definitely fit on one line.
This is a bit of a disruptive change, as it introduces an odd indentation for code that is otherwise fine to read.
I am aware that this is opinionated, but I think that fixing this is probably good for readability.
I have also seen frustration from other devs about this change, so maybe we can correct it?
The "workaround" is just to use a block body in this case, but some people probably prefer arrow functions over block bodies.
Actual
Expected
The text was updated successfully, but these errors were encountered: