Skip to content

pug templates not getting lint #310

Closed
@metaory

Description

@metaory
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions