I recently stumbled upon this project, trying to get our TypeScript+Vue project working with ESLint and Prettier, including a reasonable subset of Prettier+Vue ESLint rules.
eslint-plugin-prettier-vue does seem to work at first glance, however, there are a couple instances where it is having trouble parsing our templates, it seems.
Examples
<template>
<v-row>
<v-col
v-if="show"
xl="4"<!-- vue-prettier/vue complains about expecting '=' here; not sure why -->
>
...
<template>
<loading :is-loading="isLoading">
<v-card>
<v-card-title>
<h1 v-show="controller.$isNotFound">
<v-icon left><!-- "v-icon" is underlined with the same error -->
close
...
<template>
<loading :is-loading="isLoading">
<v-card>
<v-card-title>
<h1 v-show="controller.$isNotFound">
<v-icon left>
close<!-- "close" is underlined and the same error is reported there -->
I've cut the examples down, but I think the erroneous places are quite well visible there. It seems to me like the "v-*" directives might be throwing something off. Not sure what, though.
Here's an excerpt from our package.json's ESLint section
Hey,
I recently stumbled upon this project, trying to get our TypeScript+Vue project working with ESLint and Prettier, including a reasonable subset of Prettier+Vue ESLint rules.
eslint-plugin-prettier-vue does seem to work at first glance, however, there are a couple instances where it is having trouble parsing our templates, it seems.
Examples
I've cut the examples down, but I think the erroneous places are quite well visible there. It seems to me like the "v-*" directives might be throwing something off. Not sure what, though.
Here's an excerpt from our
package.json
's ESLint sectionCheers!