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