From fc5aa5dc48c00e7d121ecaa844beea42823a4e24 Mon Sep 17 00:00:00 2001 From: AndreasAugustin Date: Sun, 22 Mar 2020 19:23:06 +0100 Subject: [PATCH 1/2] #332 add .editorconfig The coniguration is set like the current file types have --- .editorconfig | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..7f07aec2b9 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,27 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 +indent_style = space + +[*.{ts,json,js}] +indent_style = space +indent_size = 2 + +[*.md] +indent_size = 2 +indent_style = space + +[Dockerfile] +indent_style = space +indent_size = 2 + +[*.{yml,yaml}] +indent_size = 2 +indent_style = space From 24a4a74f23e890d395840b6d80e0d072e7c275df Mon Sep 17 00:00:00 2001 From: AndreasAugustin Date: Sun, 22 Mar 2020 19:40:42 +0100 Subject: [PATCH 2/2] #332 add *.tsx, *.jsx, *.html to the .editorconfig --- .editorconfig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 7f07aec2b9..c69a5cb18f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,7 +10,11 @@ insert_final_newline = true charset = utf-8 indent_style = space -[*.{ts,json,js}] +[*.html] +indent_style = space +indent_size = 2 + +[*.{ts,json,js,tsx,jsx}] indent_style = space indent_size = 2