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 not working on eslint-plugin-vue@4.x

See original GitHub issue

JavaScript in script tag linted uncorrectly.

<template>
  working fine
</template>
<script>
  /* eslint-disable eqeqeq */
  if ('1' == 1) {}
</script>

No error throws.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dbaeumercommented, Jan 11, 2018

As said in my previous comment you need to enable vue validation in the eslint.validate settings. Something like:

{
	"eslint.validate": [
		"javascript",
		"javascriptreact",
		"vue"
	]
}
capture
0reactions
jasonxia23commented, Jan 15, 2018

I cloned my repo and opened it in VSCode. It is OK now. Don’t know the reason. Thanks anyway for your patience.

Read more comments on GitHub >

github_iconTop Results From Across the Web

lint not working on eslint-plugin-vue@4.x · Issue #385 - GitHub
I have enable vue validation in the eslint.validate settings. "eslint.validate": ["javascript", "javascriptreact", "html", "vue"].
Read more >
1 - Stack Overflow
Linting not working eslint-plugin-vue for .vue with <script src="./TheAloha.js"> · javascript · vue.js · webpack · eslint · eslint-plugin-vue.
Read more >
User Guide | eslint-plugin-vue
Official ESLint plugin for Vue.js.
Read more >
Linting Vue.js Components with eslint-plugin-vue - DigitalOcean
Go into Settings -> Packages -> linter-eslint and add text.html.vue to the “List of scopes to run eslint on” option. You may need...
Read more >
@vue/eslint-config-typescript - npm
This config is specifically designed to be used by @vue/cli & create-vue setups and is not meant for outside use (it can be...
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