From d86dcf5c750da9f53900880bdc8659e17cf8f335 Mon Sep 17 00:00:00 2001 From: Vertexwahn Date: Sat, 29 Jun 2024 15:35:02 +0200 Subject: [PATCH] Add a EditorConfig file (#2331) Add a [EditorConfig](https://editorconfig.org/) file - Unify JSON, YAML indentation - Add new line at the end of every file --- .editorconfig | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000000..16a9d8b0cb9 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +end_of_line = lf +insert_final_newline = true + +# 4 space indentation for JSON files +[*.json] +indent_style = space +indent_size = 4 + +# 4 space indentation for YAML files +[*.yaml] +indent_style = space +indent_size = 2