{
"eslint.enable": true, //启用eslint
"eslint.autoFixOnSave": true, //保存时自动lint
"no-mixed-spaces-and-tabs": [
1,
false
], //禁止混用tab和空格
"editor.insertSpaces": false, //禁止自动添加空格,因为我们前面定义使用tab缩进,如果你使用空格缩进请忽略
// "editor.insertSpaces": true,
"editor.tabSize": 2,
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
{
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
},
{
"language": "javascript",
"autoFix": true
},
],
"eslint.options": {
//这里为你项目中配置的.eslintrc.js文件,这样保存时效验的规则就和项目一致了,只需轻轻一按 ctrl+s 完美格式化,麻麻再也不用担心我的格式了
"configFile": "F:/workCode/web-fronted-exchange/.eslintrc.js",
},
"window.zoomLevel": 0,
"editor.fontSize": 20,
"workbench.colorTheme": "Monokai"
}
网友评论