From a0f3001cce388850a970d72c962b003253c85c0e Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Mon, 19 Feb 2024 13:14:39 +0100 Subject: [PATCH 1/2] Update recommended settings --- .vscode/recommended_settings.json | 21 +++++++++++++++++++++ .vscode/settings.json | 9 +++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .vscode/recommended_settings.json diff --git a/.vscode/recommended_settings.json b/.vscode/recommended_settings.json new file mode 100644 index 0000000..1b8aabf --- /dev/null +++ b/.vscode/recommended_settings.json @@ -0,0 +1,21 @@ +// Copy and rename this file to `settings.json` to use the recommended settings or use your own. +{ + "[json]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[jsonc]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit" + }, + "gitlens.advanced.blame.customArguments": ["--ignore-revs-file", ".git-blame-ignore-revs"], + "typescript.tsdk": "node_modules/typescript/lib", + "[typescript]": { + "editor.codeActionsOnSave": { + "source.organizeImports": "explicit" + } + } +} diff --git a/.vscode/settings.json b/.vscode/settings.json index b02afd5..047fd4f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,8 +9,13 @@ "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" }, "gitlens.advanced.blame.customArguments": ["--ignore-revs-file", ".git-blame-ignore-revs"], - "typescript.tsdk": "node_modules/typescript/lib" + "typescript.tsdk": "node_modules/typescript/lib", + "[typescript]": { + "editor.codeActionsOnSave": { + "source.organizeImports": "explicit" + } + } } From 9b13c93e950d514cfeef72d2ce78ad9e04079bd4 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Mon, 19 Feb 2024 13:14:51 +0100 Subject: [PATCH 2/2] Ignore local settings --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index ad269d7..4a0a56f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,6 @@ node_modules .vscode-test/ .vscode-test-web/ *.vsix + +# Local settings for Visual Studio Code +.vscode/settings.json