Skip to content

pug-lintESLint for Pug templates in Vue

Run your vue/* rules on <template lang="pug">, format the Pug with --fix, and never get a broken template back.

Before and after ​

vue
<!-- before: eslint --fix -->
<template lang="pug">
div.card( class="shadow" , :title = "title" )
    h2( v-if='title' ) {{ title }}
    input(v-model="name" , type='text' disabled)/
</template>
vue
<!-- after -->
<template lang="pug">
.card.shadow(:title="title")
  h2(v-if="title") {{ title }}
  input(v-model="name" type="text" disabled)
</template>

Released under the MIT License.