From 663a55f82eac645951a0169fbefffbb472a94497 Mon Sep 17 00:00:00 2001 From: Krisztiaan Date: Wed, 24 Feb 2021 19:14:19 +0100 Subject: [PATCH] Editorconfig and VSC recommendation changes (#1841) * recommend prettier and editorconfig * add basic editorconfig * remove prettier extension recommendation Co-authored-by: Tobbe Lundberg Co-authored-by: David Price --- .editorconfig | 22 ++++++++++++++++++++++ .vscode/extensions.json | 5 ++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000000..871c2f2fb484 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,22 @@ +# EditorConfig works out of the box with many editors, plugins are available +# for many others - see the website: +# https://EditorConfig.org + +root = true + +[*] +end_of_line = lf +insert_final_newline = true +charset = utf8 + +[*.{js,jsx,ts,tsx,graphql,sql,md,html,mjml,json,jsonc,json5,yml,yaml,template,sh,Dockerfile}] +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true + +[*.{md,html,mjml}] +trim_trailing_whitespace = false + +[Dockerfile] +indent_style = space +indent_size = 2 diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 7e327f7ab697..e7ec47ec7c89 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,7 +1,10 @@ { "recommendations": [ + "EditorConfig.EditorConfig", "dbaeumer.vscode-eslint", "mgmcdermott.vscode-language-babel" ], - "unwantedRecommendations": [] + "unwantedRecommendations": [ + "johnpapa.vscode-peacock" // not used, still tries to apply it's settings + ] }