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.

ESLint stopped working - how to fix

See original GitHub issue

Hi,

Please add the following to the readme, as it affects users installing this extension who also uses ESLint.

After installing vetur, your .vue files will be mapped to ‘vue’ type in VSCode, which will break the eslint validation that you may already have for HTML files.

To fix that, add “vue” to the list of types to validate in your settings.json file:

"eslint.validate": [
    "javascript",
    "javascriptreact",
    "html",
    "vue"
  ],

Thanks

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
octrefcommented, Feb 2, 2017

Added ESLint part to readme. Also can error-check css/scss/less now in 0.3.

1reaction
blake-newmancommented, Feb 1, 2017

If you are using eslint extension there is now option to enable eslint of languages.

  {
      "files.associations": {
          "*.vue": "vue"
      }, 
      "eslint.validate": ["javascript", "javascriptreact", "html", "vue"]
  }

Release notes: https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint

Note if you are using newly updated eslint-html-plugin you will be able to autofix vue files aswell. https://www.npmjs.com/package/eslint-plugin-html

Edit: Sorry misread issue, seems like you have this covered

Read more comments on GitHub >

github_iconTop Results From Across the Web

ESLint not working in VS Code? - Stack Overflow
If ESLint is running in the terminal but not inside VSCode, it is probably because the extension is unable to detect both the...
Read more >
ESLint not working in VSCode – possible fixes - LinuxPip
ESLint not working in VSCode – possible fixes ; 1 Run npm install? ; 2 Restart VSCode ; 3 Install ESLint + Plugins...
Read more >
ESLint not working no matter how i try to fix · Issue #769 - GitHub
I'm new to Node and JS. I'm following a course and trying to use ESLint and stuffs but ran into problems that i...
Read more >
Eslint for JavaScript code randomly stops working, which ...
I am using VS 2017 15.5.6 to write Node.js code (ES8). The Error List window sometimes randomly stops showing all errors in my...
Read more >
How To Enable Linting on Save with Visual Studio Code and ...
Trying to manually run ESLint: Fix all auto-fixable Problems periodically is not very reliable. However, having lint rules run every time you ...
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