Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What if the eslint plug-in in vscode doesn't work?

Shulou Source: shulou.com Published: 2022-06-02 15:40:34 10月28日 Update

This article will explain in detail what to do if the eslint plug-in in vscode does not work. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Recently, I have been developing with vue, but the eslint plug-in in vsCode does not work after it is installed.

Solution:

1. VsCode, open "Settings" and select "settings.json"

2. Enter the following script

"eslint.validate": ["javascript", "javascriptreact", {"language": "vue", "autoFix": true}, "vue"], "eslint.autoFixOnSave": true

As shown in the figure:

This is the end of this article on "what if the eslint plug-in in vscode doesn't work". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.

Tags: Functions plug-ins articles how to do more good practical content articles methods knowledge scripts such as figure reference help development related input select Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft MySQL Redmi Xiaomi Shulou Technology