prettier-plugin-twig-melody icon indicating copy to clipboard operation
prettier-plugin-twig-melody copied to clipboard

Way to make dot in html attribute valid ?

Open jphilung opened this issue 3 years ago • 8 comments

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.

jphilung avatar Feb 05 '22 04:02 jphilung

I get the same problem too.

azmy60 avatar Mar 04 '22 07:03 azmy60

I get also the same issue.

jankuss96 avatar Apr 06 '22 20:04 jankuss96

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">

kevinmu17 avatar Jun 30 '22 12:06 kevinmu17

Same issue here as well.

faheemhameed avatar Oct 26 '22 13:10 faheemhameed

I would love to see this be fixed...

Jupi007 avatar Dec 19 '22 14:12 Jupi007

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

davidwebca avatar Jan 14 '23 17:01 davidwebca

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

qstiegler avatar Mar 12 '23 21:03 qstiegler

Someone found a solution for this?

JoeriE avatar Mar 28 '23 14:03 JoeriE