From 7bc7328a391d2b74e6f86308ab4b13a8ba30e9a0 Mon Sep 17 00:00:00 2001 From: Peter Wood Date: Sat, 17 May 2025 14:36:40 -0400 Subject: [PATCH] feat: add .gitattributes for LF normalization and file type handling --- .gitattributes | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..89ea9f9 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,38 @@ +# Auto detect text files and perform LF normalization +* text=auto eol=lf + +# Source code +*.js text eol=lf +*.jsx text eol=lf +*.ts text eol=lf +*.tsx text eol=lf +*.json text eol=lf +*.css text eol=lf +*.html text eol=lf +*.astro text eol=lf +*.md text eol=lf +*.yml text eol=lf +*.yaml text eol=lf +*.sh text eol=lf + +# Documentation +*.md text eol=lf +*.txt text eol=lf +LICENSE text eol=lf + +# Configs +.env* text eol=lf +.git* text eol=lf +.*rc text eol=lf +*.lock text eol=lf +*.config.* text eol=lf + +# Binary files +*.ico binary +*.jpg binary +*.jpeg binary +*.png binary +*.gif binary +*.svg binary +*.woff binary +*.woff2 binary