用到的插件
- Eslint 需要全局安装 eslint
npm install -g eslint
- Vetur 提供vue的语法支持,以及格式化
- 配置文件
{
"editor.fontLigatures": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.tabSize": 2,
"eslint.validate": [
"javascript",
"javascriptreact",
"vue",
"html",
],
"eslint.options": {
"plugins": [
"html"
]
},
"eslint.workingDirectories": [
"./less_demo"
],
}
网友评论