From 7a96d0314e86dd093c7606cd4c55d984377dd325 Mon Sep 17 00:00:00 2001 From: Thaddeus Crews Date: Tue, 25 Jun 2024 08:46:06 -0500 Subject: [PATCH] Add `.editorconfig`, consolidate `.gitattributes` --- .editorconfig | 16 ++++++++++++++++ .gitattributes | 8 ++------ 2 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f14ac7f --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = tab +insert_final_newline = true +trim_trailing_whitespace = true + +[{*.py,SConstruct}] +indent_style = space + +[*.{yml,yaml}] +indent_size = 2 +indent_style = space diff --git a/.gitattributes b/.gitattributes index 9abe13e..d2f18e0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,2 @@ -*.c eol=lf -*.cpp eol=lf -*.gd eol=lf -*.tscn eol=lf -*.cfg eol=lf -*.godot eol=lf +# Normalize EOL for all files that Git considers text files +* text=auto eol=lf