Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On the fly linting with Atom #749

Closed
miljan-aleksic opened this issue Jan 31, 2018 · 1 comment
Closed

On the fly linting with Atom #749

miljan-aleksic opened this issue Jan 31, 2018 · 1 comment

Comments

@miljan-aleksic
Copy link

Version

3.0.0-alpha.5

Reproduction link

https://www.dropbox.com/s/n0m7fg2asrzyqq0/vue-cli-atom-lint.gif?dl=0

Steps to reproduce

In Atom I use linter-eslint that relies on linter to lint my code on the fly. That works pretty well with JS, even with js inside vue components, but in those same files, the vue template linting tends to misbehave.

  1. Install both linter and linter-eslint on Atom
  2. Start a vue-cli project wth linting and open the HelloWorld.vue component
  3. Make some mistake in the template and save

What is expected?

The linter should lint the page on save and show the template errors.

What is actually happening?

Nothing, the lint is not fired.


The lint does fire on any errors in the script, though, and curiously once those errors are solved the errors in the template are finally shown. Again, if there are any new in the script, the template lint is ignored again.

I don't know if this is the vue-cli scope or not. Let me know if instead, I should redirect this issue.

@yyx990803
Copy link
Member

This is probably has something to do with the way eslint-plugin-vue works with Atom's linter. Either way it's not in the scope of the cli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants