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

How to install eslint for sublime text3

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 how to install eslint in sublime text3, which 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.

Preparatory work:

The sublime text3 editor node environment must support the ESlint specification to start the installation

When the above installation is complete, install the global eslint

Sudo npm install eslint-g

If you are installing or using eslint for the first time, you can initialize an eslint file in the project

Eslint-init

If there is no package.json file in the project root, it will prompt you to initialize a package.json file using npm init first.

Configure sublime text3

The sublime text2 editor does not support the following plug-ins ~

SublimeLinter is a code review framework plug-in that is very powerful and supports checking in various languages. But it does not have the function of code review itself, and needs to rely on specific language inspection support such as ESLint. SublimeLinter-eslint our installation using the corresponding SublimeLinter-contrib-eslint plug-in can help us to use eslintBabel babel this still needs to be installed, whether it is to compile files or packaging. Configuration complete

If your installation is not wrong, then this is probably what it looks like! The sublime editor will have a highlighted reminder that your character does not conform to the code style of eslint.

Thank you for reading this article carefully. I hope it will be helpful for everyone to share sublime text3 how to install eslint content. At the same time, I also hope 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