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

Vscode's method of using eslint

2025-01-17 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 of using eslint in vscode, which has certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

Install the eslint plug-in in vs

II. Npm global installation of eslint

Sudo npm i-g eslint

3. Vs terminal runs eslint-init

4. Set it in setting of vscode

"eslint.autoFixOnSave": true

Fifth, it can be used.

Supplement: commonly used to turn off eslint method

1. Turn off paragraph verification

/ * eslint-disable * / some codesome code/* eslint-enable * /

2. Turn off the current line check

Some code / / eslint-disable-line

3. Close the next line of verification

/ / eslint-disable-next-linesome code Thank you for reading this article carefully. I hope it will be helpful for everyone to share the methods of vscode using eslint. At the same time, I also hope that you will support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

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