-
Notifications
You must be signed in to change notification settings - Fork 31
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 BUG: Attributes names are removed #114
Comments
add this to your
|
Works for me, thanks! Give that the shorthand syntax is undocumented and doesn't (can't?) work with TypeScript props, and TypeScript is baked into Astro such that you don't opt-in to it, should longhand props be the default? |
In https://github.com/withastro/prettier-plugin-astro/releases/tag/v0.1.0-next.3 |
Yes, that will be the case. See #143 |
Describe the Bug
Attribute names are removed from component usage in .astro files:
Original code:
Formatted to:
Expected:
This shorter syntax seems to work but there are two problems with it:
Steps to Reproduce
See code formatting examples above
The text was updated successfully, but these errors were encountered: