From a04a5f70c75367ea5de97379921e8f6ddb7cba38 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Sun, 25 Aug 2024 12:02:06 +0200 Subject: [PATCH] Add global .editorconfig This sets some reasonable defaults for all files. Adds settings for *.sh files, doubles as configuration for shfmt. Signed-off-by: Ralph Sennhauser --- .editorconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..efad736933 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +root = true + +[*] +charset = utf-8 +insert_final_newline = true +trim_trailing_whitespace = true + +[*.sh] +indent_style = tab +function_next_line = true +switch_case_indent = true + +[build/premake/premake5/**] +ignore = true