From 751cc2e792ed69e58505ad19377a4eae4feb22e6 Mon Sep 17 00:00:00 2001 From: Léa Gris Date: Mon, 14 Feb 2022 13:03:47 +0100 Subject: feat(coding standards): add a .editorconfig (#937) * feat(coding standards): add a .editorconfig Basics of a coding standard with a .editorconfig file. Helps contributors to use consistent text encoding, newline and indentation. See: https://editorconfig.org/ * fix(editorconfig): remove unsupported properties * fix(editorconfig): remove .gradle from 2-space indentation --- .editorconfig | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..ebbc2b6320 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +# This is the universal Text Editor Configuration +# for all GTNewHorizons projects +# See: https://editorconfig.org/ + +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{bat,ini}] +end_of_line = crlf + +[*.{dtd,json,mcmeta,md,sh,svg,xml,xsd,xsl,yaml,yml}] +indent_size = 2 -- cgit