From a2e2f479f2129f3a677ebffc67246caa0d52a3f1 Mon Sep 17 00:00:00 2001 From: Ivan Garcia Sainz-Aja Date: Thu, 19 Dec 2024 18:36:10 +0100 Subject: [PATCH] adds .editorconfig and .gitattributes --- .editorconfig | 17 +++++++++++++++++ .gitattributes | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..7b3df3db --- /dev/null +++ b/.editorconfig @@ -0,0 +1,17 @@ +# EditorConfig helps developers define and maintain consistent +# coding styles between different editors and IDEs +# editorconfig.org + +root = true + +[*] + +# We recommend you to keep these unchanged +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + + +[*.md] +trim_trailing_whitespace = false diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..bfdaff8c --- /dev/null +++ b/.gitattributes @@ -0,0 +1,33 @@ +# Enforce LF line endings for all text files by default +* text=auto eol=lf + +# Explicit exceptions for CRLF line endings +*.bat text eol=crlf +*.cmd text eol=crlf +*.ps1 text eol=crlf + +# Explicitly mark binary files +# (Git automatically detects these, but this is a safeguard for clarity) +*.pdf binary +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.tif binary +*.tiff binary +*.ico binary +*.svg binary +*.eps binary +*.class binary +*.jar binary +*.war binary +*.7z binary +*.gz binary +*.rar binary +*.tar binary +*.zip binary +*.ttf binary +*.eot binary +*.otf binary +*.woff binary +*.woff2 binary