From 6aa2591d9ccfb0704bebcd0aae002c4a5ea76057 Mon Sep 17 00:00:00 2001 From: ChenZhaoYu <790348264@qq.com> Date: Sat, 11 Feb 2023 08:17:48 +0800 Subject: [PATCH] chore: editor config --- .vscode/extensions.json | 2 +- .vscode/settings.json | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index c0a6e5a..269dc29 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,3 +1,3 @@ { - "recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"] + "recommendations": ["Vue.volar", "dbaeumer.vscode-eslint"] } diff --git a/.vscode/settings.json b/.vscode/settings.json index c3f5131..815fe46 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,8 +1,21 @@ { - "editor.formatOnSave": false, "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, + "eslint.validate": [ + "javascript", + "javascriptreact", + "typescript", + "typescriptreact", + "vue", + "html", + "json", + "jsonc", + "json5", + "yaml", + "yml", + "markdown" + ], "cSpell.words": [ "antfu", "axios",