Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method to solve the problem that vscode can't repair eslint error automatically

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the method to solve the problem that vscode can not automatically repair eslint error. The article is very detailed and has a certain reference value. Interested friends must read it!

1. Install the plug-in

Npm I-g eslint-plugin-vue

2. Modify the file under the project and path: .eslintrc | .eslint.js

3. Add eslint and vetur plug-ins

4. Modify vscode preference configuration

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

After the configuration is completed, restart vscode, and the error of eslint will be automatically fixed when saving.

The above is all the contents of this article entitled "solving the problem that vscode cannot automatically fix eslint errors". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report