From 9bcc8e8333fd53aff37bf7a416fc7244b72c4873 Mon Sep 17 00:00:00 2001 From: Herman van Rink Date: Sun, 14 May 2023 14:50:00 +0200 Subject: [PATCH 1/2] Propose a basic editorconfig, #5522 --- .editorconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..89254ef91f --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +; top-most EditorConfig file +root = true + +; Unix-style newlines +[*] +charset = utf-8 +end_of_line = LF +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{php}] +indent_style = tab + +[*.{htm,html}] +indent_style = space +indent_size = 4 -- GitLab From 3b918323053335ba69dd223856a5a40adf34f332 Mon Sep 17 00:00:00 2001 From: Herman van Rink Date: Tue, 16 May 2023 21:42:13 +0200 Subject: [PATCH 2/2] Tabs are preferred by Till, so lets make that the default --- .editorconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 89254ef91f..7150a72ebc 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,8 +7,6 @@ charset = utf-8 end_of_line = LF insert_final_newline = true trim_trailing_whitespace = true - -[*.{php}] indent_style = tab [*.{htm,html}] -- GitLab