-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Nested ternary formatting - add indents back #5814
Copy link
Copy link
Labels
lang:javascriptIssues affecting JSIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.status:needs discussionIssues needing discussion and a decision to be made before action can be takenIssues needing discussion and a decision to be made before action can be taken
Description
Edit: I will no longer be actively participating in this thread - my reasons are explained in comment below.
Hello,
there are many - including me thinking that change to nested ternary is not best decision.
I know there is some reasoning why nested ternary indent was removed, but it's much harder to read code now.
At least would be good to have option to remain nice formatting (from previous prettier version) - formatting of ternaries with indent and not under each other like:
condition
? a
: b
? c
: d
instead much easier to understand and read is:
condition
? a
: b
? c
: d
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
lang:javascriptIssues affecting JSIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.status:needs discussionIssues needing discussion and a decision to be made before action can be takenIssues needing discussion and a decision to be made before action can be taken