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
I use Neovim as my editor, formatting was working fine until I used :value as a shorthand for x-bind:value for alpinejs. When i run prettier from the cli (prettier MY_FILE --write) it gives me the error "SyntaxError: Unexpected token" with a caret pointing to the colon. Writing out the long form x-bind:value works fine.
Steps to Reproduce
Edit a file in an astro repo (with the prettier plugin) to have : prefixing any html tag
try formatting the document, either through the editor or cli
The text was updated successfully, but these errors were encountered:
22ispencer
changed the title
🐛 BUG: Formatting failing with alpinejs short hand for x-bind:
🐛 BUG: Formatting failing with alpinejs short hand for x-bind -> :Aug 21, 2024
Describe the Bug
I use Neovim as my editor, formatting was working fine until I used
:value
as a shorthand forx-bind:value
for alpinejs. When i run prettier from the cli (prettier MY_FILE --write
) it gives me the error "SyntaxError: Unexpected token" with a caret pointing to the colon. Writing out the long formx-bind:value
works fine.Steps to Reproduce
:
prefixing any html tagThe text was updated successfully, but these errors were encountered: