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.

Lint .html templates

See original GitHub issue

Hi,

How can I help to make this plugin support .html files that I am using for templates. That is possible with vue-template-loader.

Very similar issue #489 was created recently and maybe it is the same but I don’t know for sure since I don’t want to have .vue file at all.

Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
zfehercommented, Jun 13, 2018

Hi’

We also need support for this scenario. We are recently migrated our code base from Vue 1 to Vue 2 and we created simple vue files like this for now:

<!-- component.vue -->

<template src="./template.html"></template>
<style src="./style.scss"></style>
<script src="./index.js"></script>

This works well. But eslint vue plugin won’t check the referenced template.html nor the index.js. The latter can be fixed though via adding the // @vue/component comment above the component definition. Maybe the same can be done with templates as well eg:

<!-- template.html -->

<!-- @vue/component -->
<div>
  your template
</div>

If this could be supported that would be really helpful.

The best option would be (if possible) to check vue files as is no matter if it uses references or the content defined there.

4reactions
michalsnikcommented, Sep 23, 2018

Sorry guys, but due to technological concerns and potential problems discovered in here we have to postpone this request indefinitely, thus I’m going to close this issue for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

djLint: HTML Template Linter and Formatter
Find common syntax errors, reformat to make your HTML templates shine! Supports django, jinja, nunjucks, twig, handlebars, mustache, golang, and more!
Read more >
Is there way to lint *.component.html files? · Issue #142 - GitHub
Inline template are lint well. But when i open *.component.html buffer, it doesn't work. Is there any way to lint *.component.html files?
Read more >
How to lint Angular *.html files from command line?
I would like to lint html angular template files via the command line, similar to: ng lint. I would like to validate the...
Read more >
i18n-lint - GitHub Pages
i18n-lint, tool for linting HTML and template source files for hardcoded string.
Read more >
template-lint - npm
The intended goal of this work is to sanity check your template html during the development cycle to highlight potential problems. This project ......
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