From f905d40be7356ecf992d69122c7fadc835520469 Mon Sep 17 00:00:00 2001 From: Bryan Perdrizat Date: Wed, 31 Jul 2024 12:24:23 +0200 Subject: [PATCH] cfg: add .editorconfig --- .editorconfig | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..277a859170 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,27 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = false + +# Unix-style newlines with a newline ending every file +[*] +trim_trailing_whitespace = true +end_of_line = lf +insert_final_newline = true +charset = utf-8 +indent_style = space +indent_size = 4 + +# 4 space indentation +[*.py] +indent_style = space +indent_size = 4 + +# Tab indentation (no size specified) +[Makefile] +indent_style = tab + +# Matches the exact files either package.json or .travis.yml +[*.{json,yml,yaml,toml}] +indent_style = space +indent_size = 2 \ No newline at end of file