prettier-plugin-twig-melody
prettier-plugin-twig-melody copied to clipboard
Way to make dot in html attribute valid ?
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.
I get the same problem too.
I get also the same issue.
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">
Same issue here as well.
I would love to see this be fixed...
I'm piling on, this is also bothering me.
Also the @
is valid with AlpineJS. Please try to fix this!
Someone found a solution for this?