vscode installation configuration ESlint

Install the plug ESLint, disposed behind the added code setting setting.json:

{
"files.autoSave": "afterDelay",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"git.path": "E:/git/Git/bin/git.exe",
"window.zoomLevel": 0,
"editor.formatOnSave": false,
"eslint.options":{
"extensins":[
".js",
".view"
]
},
"eslint.validate": [
"javascript",
{
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
},
],
"eslint.autoFixOnSave": true,
}
After the project is installed eslint check software configured automatically when you save the code formatting, multi-press Save, check each part of the code will be processed, and finally there is a separate process to report red

Guess you like

Origin www.cnblogs.com/zyz-s/p/12058147.html