From af949264ebcc33c07df3d5dfc5f0f734ab2e119c Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Mon, 17 Jan 2022 17:43:21 +0800 Subject: [PATCH] chore: add vscode config file (#411) Signed-off-by: Ryan Wang --- .vscode/extensions.json | 8 ++++++++ .vscode/settings.json | 22 ++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000..da2e01eb --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,8 @@ +{ + "recommendations": [ + "dbaeumer.vscode-eslint", + "esbenp.prettier-vscode", + "editorconfig.editorconfig", + "johnsoncodehk.volar" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..f44ed899 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,22 @@ +{ + "eslint.validate": ["javascript", "typescript", "javascriptreact", "vue"], + "[vue]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[jsonc]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[javascript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[json]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[typescript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[html]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "editor.tabSize": 2 +}