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

Way to make dot in html attribute valid ? #100

Open
jphilung opened this issue Feb 5, 2022 · 8 comments
Open

Way to make dot in html attribute valid ? #100

jphilung opened this issue Feb 5, 2022 · 8 comments

Comments

@jphilung
Copy link

jphilung commented Feb 5, 2022

I am using alpine.js (https://alpinejs.dev/directives/on) which uses a dot modifier on some html attribute. This causes the prettier parser to fail because it's not a valid character.

Expected a valid attribute name, but instead found ".", which is not part of a valid attribute name.

@azmy60
Copy link

azmy60 commented Mar 4, 2022

I get the same problem too.

@jankuss96
Copy link

I get also the same issue.

@kevinmu17
Copy link

kevinmu17 commented Jun 30, 2022

Same goes for everything you can do with alpine, not only dots. but also plain javascript isn't working for prettier either.
()=>{ x = x++} etc

SVG's are also not 'allowed', i'm searching for an option to disable these checks

<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 27.584 27.565">

@faheemhameed
Copy link

Same issue here as well.

@Jupi007
Copy link

Jupi007 commented Dec 19, 2022

I would love to see this be fixed...

@davidwebca
Copy link

I'm piling on, this is also bothering me.

@qstiegler
Copy link

Also the @ is valid with AlpineJS. Please try to fix this!

@JoeriE
Copy link

JoeriE commented Mar 28, 2023

Someone found a solution for this?

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

9 participants