feat: add .gitattributes for LF normalization and file type handling

This commit is contained in:
Peter Wood
2025-05-17 14:36:40 -04:00
parent ebd9148cb5
commit 7bc7328a39

38
.gitattributes vendored Normal file
View File

@@ -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