From 1c0bd853798640a0bdf3df8da15e1628b7e18a3e Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Fri, 7 Aug 2026 20:42:08 +0200 Subject: [PATCH] chore: add editorconfig Signed-off-by: Jan Kowalleck --- .editorconfig | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..f2ec02d17 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,64 @@ +# EditorConfig is awesome: https://editorconfig.org + +# top-most EditorConfig file +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true + + +[*.md] +trim_trailing_whitespace = false # markdown uses 2 trailing spaces for line-breaks +indent_style = space + + +[*.{xml,xsd}] +trim_trailing_whitespace = true +indent_style = space +indent_size = 4 + +[*.json] +trim_trailing_whitespace = true +indent_style = space +indent_size = 2 + +[*.{proto,textproto}] +trim_trailing_whitespace = true +indent_style = space +indent_size = 2 + + + +[*.{yml,yaml}] +trim_trailing_whitespace = true +indent_style = space +indent_size = 2 + + + +[*.sh] +trim_trailing_whitespace = true +indent_style = space +indent_size = 2 + +[*.java] +trim_trailing_whitespace = true +indent_style = space +indent_size = 4 + +[*.py] +trim_trailing_whitespace = true +indent_style = space +indent_size = 4 + +[*.{js,mjs,cjs}] +trim_trailing_whitespace = true +indent_style = space +indent_size = 4 + +[*.php] +trim_trailing_whitespace = true +indent_style = space +indent_size = 4