Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I set up such formatting of the ternary operator? #570

Closed
doox911 opened this issue Oct 13, 2022 · 1 comment
Closed

How can I set up such formatting of the ternary operator? #570

doox911 opened this issue Oct 13, 2022 · 1 comment

Comments

@doox911
Copy link

doox911 commented Oct 13, 2022

I have code:

const a =  true ? true : false ? false : true;

I would like to see:

const a = true 
  ? true
  : false 
    ? false
    : true;

But, after formatting:

const a = true
  ? true
  : false
  ? false
  : true;
@doox911 doox911 closed this as completed Oct 17, 2022
@doox911
Copy link
Author

doox911 commented Oct 17, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant