Jürg Lehni
Jürg Lehni
So the error happens here: https://github.com/prettier/plugin-pug/blob/aed6523035b64722e3ac080c523bfd855c780ad9/src/printer.ts#L711 If I log the error, here is what I get. It seems curious that the angular parser is used for a Vue directive? ```...
The error makes you think that the problem is the `!!` while in fact it's simply choking on the `:` inside the object literal.
I could try, but I don't really know enough about the current workings. It seems to me that using the angular parser is not a bug, but by design? There's...
Hmm it's more complicated. This only appears to be happening when running through `eslint-plugin-prettier`. Investigating more…
Ah no I was running on an outdated code base. The warning started appearing with this commit: f5e5ef1817c9f0ab74bbfbf062ef6e933596688f But for some reason more recently this is now seen as an...
Ok I'm slowly getting there.. So the warning doesn't appear for some reason in the `@prettier/plugin-pug` code base as long as the `prettier-plugin-organize-imports` plugin gets auto-loaded in the unit tests....
Hmmm so setting `pugFramework: 'vue'` seems to solve this. I noticed that even when I run nested pug templates inside vue SFC files, `this.framework` is still `'auto'`. That seems like...
I don't know what more to do here. With #420 merged, I would manage to write a test that spits out this warning, but it only does so because it's...
This setting didn't exist when I set up the config 2 years ago. Then the warning started popping up at one point and with a more recent prettier update it...
> But are SFC not only for vue but also svelte? Not sure without checking it myself if it's easily possible to detect the correct framework. Yea I guess it...