-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Bug: Cannot format expressions in Vue using TS types #365
Comments
Could you try remove |
Sorry for forgetting to test this before. |
Lines 679 to 681 in 0d70a7f
Line 654 in 0d70a7f
I think we need to forward this bug to upstream prettier 🤔 @fisker Does prettier already support Vue 3's types in |
I don't use TS myself, but we may have a related issue prettier/prettier#12414 Hope I didn't misunderstand this issue, they are all TS in template, right? |
Yes |
We need to update the vue expression parser to allow typescript syntax, luckily we have |
Info
Prettier config
Input
Output or Error
Expected Output
In this case, is expected that `:ref="(el:any) => pinRefs[index] = el",` gets reordered to before `:maxlength="1",`
Additional Context
The text was updated successfully, but these errors were encountered: