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
{{ message }}
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
Based on discussions with the team and this public thread, we've decided to change the style guideline for conditional operators. Unlike other binary operators which stay on the previous line when a line break occurs near the operator, conditionals will go to the beginning of the next line, followed by a space.
I'll be changing the formatter to do this shortly.
Concretely, I think it means changing the style guide from:
DO place the operator on the preceding line in a multi-line expression.
To:
DO place binary operators on the preceding line in a multi-line expression.
And adding:
Do place ternary operators on the next line in a multi-line expression.
Also, if you break the line before one of the operators, prefer breaking around both.
Based on discussions with the team and this public thread, we've decided to change the style guideline for conditional operators. Unlike other binary operators which stay on the previous line when a line break occurs near the operator, conditionals will go to the beginning of the next line, followed by a space.
I'll be changing the formatter to do this shortly.
Concretely, I think it means changing the style guide from:
To:
And adding:
The text was updated successfully, but these errors were encountered: