Eslint-plugin-vue: pug templates not getting lint

Created on 30 Dec 2017  路  5Comments  路  Source: vuejs/eslint-plugin-vue

  • ESLint Version: 4.14.0
  • eslint-plugin-vue Version: 4.0.0-beta.4
  • Node Version: 9.2.0
module.exports = {
  root: true,
  parserOptions: {
    'parser': 'babel-eslint',
    'ecmaVersion': 2017,
    'ecmaFeatures': {
      'experimentalObjectRestSpread': true
    },
    'sourceType': 'module'
  },
  env: {
    browser: true,
    es6: true
  },
  'extends': [
    'google',
    'plugin:vue/recommended'
  ],
  plugins: [ ],
  settings: {
    'import/resolver': {
      webpack: {
        config: 'build/webpack.base.conf.js'
      }
    }
  },
  globals: {    'Vue': true  },
  rules: {  }
}

none of rules getting checked on pug templates

<template lang="pug">
  div
    ol(v-for="i in 5")
      li foobar
</template>

it works fine on html templates

<template>
  <div>
    <ol v-for="i in 5">
      <li>item</li>
    </ol>
  </div>
</template>

pug templates not getting lint

question

Most helpful comment

Hello, just wondering if there are any plans for pug support?

All 5 comments

Thank you for the report.

Unfortunately, this plugin has not supported pug yet.
I have a plan to lint pug in future, but it's not soon.

Hello, just wondering if there are any plans for pug support?

@mysticatea @michalsnik can we get an update on your plans for pug support? it's a sorely needed feature!

Any plans for pug support?

No plans so far here. Please fire an issue in vue-eslint-parser - once it supports PUG we'll be able to support it too.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rodrigoabb picture rodrigoabb  路  3Comments

casprwang picture casprwang  路  4Comments

maple-leaf picture maple-leaf  路  3Comments

deangoku picture deangoku  路  4Comments

apertureless picture apertureless  路  4Comments