-
Install ESLint VS Code extension
-
Install Vue 2 Snippts VS Code extension
-
Install eslint-plugin-html: npm install --save-dev eslint-plugin-html
-
Add
"plugins": ["html"]
to eslintrc config file as per eslint-plugin-html instructions. Vue extension is enabled by default for the plugin. -
Open VS Code user settings and add vue to eslint.validate:
"eslint.validate": [ "javascript", "javascriptreact", "vue" ]
-
Restart VS Code, eslint should now be displaying lint errors within
<script>
tags
Last active
June 2, 2019 17:20
-
-
Save strickc/5bdd35f34d689c6c1525534341307870 to your computer and use it in GitHub Desktop.
Configure VS Code for Vue.js component vue files for syntax highlighting and ESLint support within <script> tags
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
good