Skip to content
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: Formatting failing with alpinejs short hand for x-bind -> : #427

Open
22ispencer opened this issue Aug 21, 2024 · 0 comments
Open

Comments

@22ispencer
Copy link

Describe the Bug

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

  1. Edit a file in an astro repo (with the prettier plugin) to have : prefixing any html tag
  2. try formatting the document, either through the editor or cli
@22ispencer 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant