lint not working on eslint-plugin-vue@4.x
See original GitHub issueJavaScript in script tag linted uncorrectly.
<template>
working fine
</template>
<script>
/* eslint-disable eqeqeq */
if ('1' == 1) {}
</script>
No error throws.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top 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 >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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As said in my previous comment you need to enable vue validation in the eslint.validate settings. Something like:
I cloned my repo and opened it in VSCode. It is OK now. Don’t know the reason. Thanks anyway for your patience.