From 702f3c8b27f1d03d9df540b522f2725fd0ec7b15 Mon Sep 17 00:00:00 2001 From: Septs Date: Thu, 19 Aug 2021 08:26:23 +0800 Subject: [PATCH] chore: add editor config (#101) --- .editorconfig | 8 ++++++++ .vscode/extensions.json | 7 +++++++ .vscode/settings.json | 9 +++++++++ 3 files changed, 24 insertions(+) create mode 100644 .editorconfig create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..7278fb63 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +root = true + +[*] +charset = utf-8 +indent_size = 2 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000..34550438 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + "recommendations": [ + "DavidAnson.vscode-markdownlint", + "esbenp.prettier-vscode", + "EditorConfig.EditorConfig" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..397662c3 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,9 @@ +{ + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.fixAll": true + }, + "markdownlint.config": { + "no-inline-html": false + } +}