question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pug templates not getting lint

See original GitHub issue
  • 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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

38reactions
maksnestercommented, Mar 23, 2018

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

15reactions
mysticateacommented, Dec 30, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

stylelint - Lint styles into Pug files
I want to lint CSS into Pug style. tag raw content (CSS) and style attribute content (CSS). Looks like Stylelint is a right...
Read more >
pug-lint | Yarn - Package Manager
pug -lint. An unopinionated and configurable linter and style checker for Pug (formerly Jade). build status coverage status dependency status npm ...
Read more >
Migrating to Pug 2
Simply remove - and your code should work again. Removed API ¶. These exported properties and compilation options have been removed. In your...
Read more >
Pug Template - Flamingo Documentations
Templating¶. One feature of pug.js is the possibility to use arbitrary JavaScript in cases where the template syntax does not provide the some...
Read more >
vue-eslint-parser-template-tokenizer-pug
This is an internal library. If you just want to lint your pug templates, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found