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 indentation of inner expression in template literal is incorrect. Given the example below, the indentation is based on the return token, which is wrong.
Make indentation according to the starting ${. This may be hard because we can't simply apply this if the column of ${ is greater than the column of inner expression. (For example, look at Line 2 in the code below.)
Describe the bug
The indentation of inner expression in template literal is incorrect. Given the example below, the indentation is based on the
return
token, which is wrong.dprint-plugin-typescript version: 0.90.5
Input Code
Expected Output
There're two possible solutions:
Prettier playground
Biome playground
${
. This may be hard because we can't simply apply this if the column of${
is greater than the column of inner expression. (For example, look at Line 2 in the code below.)Actual Output
playground
This bug is originally caught by @NWYLZW .
The text was updated successfully, but these errors were encountered: