This article will share with you how to build an eslint development environment based on vscode. It has a certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone
[Recommended learning: "vscode tutorial"]
Basic environment:
vscode v1.0.0
eslint v2.8.0
mac
If you don’t have vscode yet, you can download it from here
to install vscode The required eslint plug-in
plugin address ishere
##Copy the command, open the shortcut bar in vscode, command p, paste , vscode will automatically download the plug-in. After the plug-in is downloaded, you will be prompted to restart vscode to run the plug-in. After the installation is complete, we open Terminal and create our projectmkdir vsc-demo && cd vsc-demo
touch app.js
var num = 1; const array = []
npm install eslint -g
eslint --v // v2.8.0
eslint --init
Programming Video! !
The above is the detailed content of A brief discussion on how to build an eslint development environment in vscode. For more information, please follow other related articles on the PHP Chinese website!