Home > Development Tools > VSCode > How to configure eslint in vscode

How to configure eslint in vscode

王林
Release: 2020-02-18 17:37:23
Original
7990 people have browsed it

How to configure eslint in vscode

1. Open the terminal, run npm install eslint -g, and download ESLint globally;

2. Open VS Code, download the eslint plug-in, and re- Load to take effect;

3. Enter the project where you want to use ESLint, open the terminal and enter eslint --init to initialize;

(recommended related article tutorials: vscode tutorial)

How to configure eslint in vscode

4. After the setting is completed, a configuration file named .eslintrc.js will be generated in the current directory. You can customize it according to your personal preferences. Configuration;

5. Next, find the ESLint option in File => Preferences => Settings, and configure the configuration file address of our .eslintrc.js.

How to configure eslint in vscode

For more programming-related content, please pay attention to the Programming Introduction column on the php Chinese website!

The above is the detailed content of How to configure eslint in vscode. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template