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.

disable eslint in vue template

See original GitHub issue

Hi,

Is there anyway to disable lint in template like in js (e.g. eslint-disable-line)?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:46
  • Comments:39 (2 by maintainers)

github_iconTop GitHub Comments

336reactions
KITSMoeNashashibicommented, Sep 27, 2018

try <!-- eslint-disable --> this will disable linting for everything below it you can use <!-- eslint-enable --> to re-enable it back

251reactions
willincommented, Aug 28, 2018

@mysticatea how about now???

    <!-- eslint-disable-next-line vue/no-v-html -->
    <p class="post-excerpt" v-html="post.excerpt || post.frontmatter.description || '' " />
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable ESLint in vue-cli? - Stack Overflow
Common rules like unused variables or unused imports are in eslint:recommended . If you want to disable such rules, just remove eslint: ...
Read more >
User Guide | eslint-plugin-vue
Disabling rules via <!-- eslint-disable --> # ... You can use <!-- eslint-disable --> -like HTML comments in the <template> and in the...
Read more >
User Guide | eslint-plugin-vue-scoped-css
You can use /* eslint-disable */ -like CSS comments in <style> of .vue files to disable a certain rule temporarily. For example: 1....
Read more >
How disable eslint warning for a specific line in a template in a ...
[Solved]-How disable eslint warning for a specific line in a template in a .vue file in VS Code-Vue.js · Install ESLint plugin ·...
Read more >
Vue 3.x disable ESlint error All In One - xgqfrms - 博客园
The template element is used to declare fragments of HTML that can be cloned and inserted in the document by script. [vue/no-multiple-template- ...
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