How to configure js syntax verification in Atom under mac
This article will introduce to you how to Atom configure JavaScript syntax verification in the mac environment. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.
Related recommendations: "atom tutorial"
Hello everyone, this time I brought Atom A small tutorial to teach you how to configure js syntax verification. The following installation environment uses Mac as an example.
1. Install nodejs
2. Install Atom plug-in linter, eslint
3. Install babel-eslint on the console
npm i babel-eslint -g
4. Generate syntax verification configuration file.eslintrc
Specific configuration rules production test eslint official document , I have configured a copy here, in json format.
eslintrc.json preview address: https://segmentfault.com/n/1330000004818767
Put it into the system root directory (such as the root directory of mac: ~/.eslintrc.json)
5. Configure the eslint plug-in in Atom
Configure ESlint Rules Dir (eslint path) such as:
/usr/local/lib/node_modules/babel-eslint
Configure the .eslintrc path, I It is thrown in the root directory:
~/.eslintrc.json
Configure the root path of Node installation. If you don’t know, open the console and enter npm get prefix, and enter the result into
/usr/local
6. Open in html js verification in
Console installation extension plug-in,
npm i eslint-plugin-html -g
Open the .eslintrc configuration file, add configuration in the plug-in item:
"plugins": [ "eslint-plugin-html" ]
eslint in Atom Check Lint HTML Files in the plug-in
Done, enjoy the new development tools
For more computer programming related knowledge, please visit:Programming Teaching! !
The above is the detailed content of How to configure js syntax verification in Atom under mac. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Introduction: In this article, this website will introduce to you the relevant content about the Mac keyboard not responding when entering passwords. I hope it will be helpful to you, let’s take a look. How to solve the problem that the password cannot be entered on the Apple Mac system? You can also try to connect this keyboard to other computers to see if it works normally. If the same problem occurs on another computer, it's most likely a fault with the keyboard itself. You may consider replacing the keyboard or repairing it. The first time you log in to Alipay with your Mac computer, you will find the login interface and cannot enter your password. The password input field displays: "Please click here to install the control", so Alipay login requires the installation of security controls. Security controls can encrypt and protect the information you enter (amount, password, etc.) to improve account security. Tie

Many Mac users tend to keep the default name of their device and may never consider changing it. Many people choose to stick with the name from the initial setup, such as "Johnny's MacBook Air" or simply "iMac." Learning how to change the name of your Mac is a very useful skill, especially when you have multiple devices, as it can help you quickly distinguish and manage them. Next, we will teach you step by step how to change the computer name, host name and Bonjour name (local host name) in macOS system. Why should you change your Mac name? Changing the name of your Mac can not only show your personality, but also help improve the user experience: Personalize your Mac: The default name may not be to your taste, change it to a name you like.

Preface: Today, this site will share with you the relevant content about installing pkg files on Mac. If it can solve the problem you are facing now, don’t forget to follow this site and start now! The previous version of macos pkg cannot be installed to upgrade the operating system: If your laptop is using an older operating system version, it is recommended to upgrade to the latest operating system version. Because older versions may not support installation of the latest macOS system. Select "Erase" in Disk Utility, then select the Macos extension in the format, do not check the encryption option, and do not select the apfs format, and finally click the "Erase" button to solve the problem of being unable to complete the macOS installation. Drag the application's icon to the file starting with App

Recently, some friends have consulted the editor about how to set up WeChat Mac to automatically convert voice messages into text. The following is a method for setting up WeChat Mac to automatically convert voice messages into text. Friends in need can come and learn more. Step 1: First, open the Mac version of WeChat. As shown in the picture: Step 2: Next, click "Settings". As shown in the picture: Step 3: Then, click "General". As shown in the picture: Step 4: Then check the option "Automatically convert voice messages in chat to text". As shown in the picture: Step 5: Finally, close the window. As shown in the picture:

By default, iPhone takes photos from the camera in HEIC format. HEIC stands for High Efficiency Image Container and can hold more pixel data than PNG or JPG files, taking up significantly less space on iPhone storage compared to other formats. These files work best on iPhones but are not widely accepted on the internet because they often result in blurry/grainy pictures when you share them with non-Apple devices. To ensure that HEIC images are compatible on other devices, you may need to convert them to JPG format. This article will introduce how to convert HEIC images to JPG on Mac. How to Convert HEIC Photos to JPG on Mac [3 Methods] Method

Introduction: This article will introduce to you the relevant content about the mac configuration file not taking effect. I hope it will be helpful to you, let's take a look. The solution to the problem that environment variables cannot take effect under Mac. After configuring environment variables in the Mac system, it is found that they are only effective in the current terminal and will become invalid once the terminal is switched. After inquiry, it was found that the Mac system is pre-installed with a tool called ultimate shell-zsh, and the reading of environment variables needs to be set in the .zshrc file. 2. In order for our configuration file to take effect, we can only add the above configuration in .zshrc. If you don’t make the above settings, you will find that it will only take effect every time you source ~/.bash_profile. Re-open z next time.

Preface: Many friends have asked questions about the full screen of the vmmac virtual machine. This article will give you a detailed answer for your reference. I hope it will be helpful to you! Let’s take a look! Mac virtual machine Overwatch has no screen reason: graphics card compatibility issue. If you used to run Overwatch normally but now have a black screen, it may be due to a faulty graphics driver. Solution: Check whether the graphics card supports the game requirements. Update graphics card driver. Try using a different power supply to rule out the second possibility. Check whether there are any abnormalities on the motherboard, such as whether the capacitor is bulged (may have been broken down), whether there is obvious damage to the surface of the motherboard, causing circuit interruption, etc. It is recommended to send the motherboard to a repair station for inspection. If conditions permit, you can consider replacing it with another one.

Introduction: This article is here to introduce you to the related content about Mac compressed files that cannot be opened. I hope it will be helpful to you, let’s take a look. Why can't I open the decompressed rar file on Mac? Since you don't have Mac decompression software, I would like to recommend a Mac version of decompression software to everyone. It is similar to commonly used compression software on Windows such as 360 Compression. Simply open the file and unzip it easily. The operation steps for Apple Mac computers that cannot open RAR files are as follows: First, install the RAR file decompression application, and you need to enter your Apple ID account and password to complete the installation. In the second step, after the installation is complete, return to the Mac desktop and double-click the RAR file to open and decompress the file contents. 3. Turn on the power
