From 5cd9d2f378b0c68a9c8e2e27be10dd7e46ec1b15 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 4 Jul 2024 13:17:41 +0200 Subject: [PATCH] editorconfig: add initial config EditorConfig [1] defines a configuration file format to set basic code style preferences. The preferences are picked up automatically by many text editors by default. [1]: https://editorconfig.org/ --- .editorconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000000..028995d76cc --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space + +[*.{tsx,ts,js,scss,json,toml,yml,yaml,nix}] +indent_size = 2 + +[*.{rs,kt,java,sql,py,sh}] +indent_size = 4