We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
else
if
Describe the bug
dprint-plugin-typescript version: x.x.x
Input Code
https://dprint.dev/playground/#code/JYMwFAhglA3qYCNYGMD2A7AzqgNgUwDodUBzMABigG4BfGvHTPAAngBMUNt8jSwBGavUZ4YaLLkLEyAJiFA/config/N4XyA/plugin/typescript
if(a){if(b){console.log(0);}}else if(d){console.log(1);}else{console.log(2);}
Expected Output
Something so that if a is false and d is true that code logs 1
a
false
d
true
1
Actual Output
if (a) if (b) console.log(0); else if (d) console.log(1); else console.log(2);
which, when a is false, logs nothing.
The text was updated successfully, but these errors were encountered:
Thanks! That's pretty bad. Fixed in 0.90.5
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
dprint-plugin-typescript version: x.x.x
Input Code
https://dprint.dev/playground/#code/JYMwFAhglA3qYCNYGMD2A7AzqgNgUwDodUBzMABigG4BfGvHTPAAngBMUNt8jSwBGavUZ4YaLLkLEyAJiFA/config/N4XyA/plugin/typescript
Expected Output
Something so that if
a
isfalse
andd
istrue
that code logs1
Actual Output
which, when
a
isfalse
, logs nothing.The text was updated successfully, but these errors were encountered: