In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to configure js grammar checking in Atom under mac. I believe most people don't know much about it, so share this article for your reference. I hope you can learn a lot after reading this article. Let's learn about it together.
How Atom configures js syntax checking, the following installation environment takes mac as an example.
1. Install nodejs
two。 Install Atom plug-ins linter, eslint
3. Console installation of babel-eslint
Npm I babel-eslint-g
4. Generate a configuration file for syntax checking. Eslintrc
I have a copy of the eslint official document for the specific configuration rules, which is in json format.
.eslintrc.json
Put it in the root directory of the system (such as the root directory of mac: ~ / .eslintrc.json)
5. Configure the eslint plug-in in Atom
Configure ESlint Rules Dir (the path of eslint), such as:
/ usr/local/lib/node_modules/babel-eslint
Configure the .eslintrc path, which I threw in the root directory:
~ / .eslintrc.json
Configure the root path of the Node installation. If you don't know, open the console and enter npm get prefix, and enter the result.
/ usr/local
6. Turn on js authentication in html
Console installation extension
Npm I eslint-plugin-html-g
Open the .eslintrc configuration file and add the configuration in the plug-in item:
"plugins": ["eslint-plugin-html"]
Check Lint HTML Files in the eslint plug-in in Atom
The above is all the contents of the article "how to configure js Grammar check in Atom under mac". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.