|
|
@@ -12,8 +12,7 @@
|
|
|
},
|
|
|
"eslint.enable": true,
|
|
|
"editor.codeActionsOnSave": {
|
|
|
- "source.fixAll.eslint": "always",
|
|
|
- "source.organizeImports": "always"
|
|
|
+ "source.fixAll.eslint": "explicit"
|
|
|
},
|
|
|
|
|
|
// 文件和搜索设置
|
|
|
@@ -31,13 +30,5 @@
|
|
|
// Prettier设置
|
|
|
"prettier.configPath": ".prettierrc.json",
|
|
|
"prettier.requireConfig": true,
|
|
|
-
|
|
|
- // Vetur设置
|
|
|
- "vetur.format.defaultFormatter.html": "prettier",
|
|
|
- "vetur.format.defaultFormatter.js": "prettier-eslint",
|
|
|
- "vetur.validation.template": false, // 让ESLint处理模板校验
|
|
|
- "vetur.grammar.customBlocks": {
|
|
|
- "docs": "md",
|
|
|
- "i18n": "json"
|
|
|
- }
|
|
|
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
|
}
|