Add .gitattributes for proper line endings and language detection

This commit is contained in:
2025-11-25 11:44:26 +01:00
parent b2c5d94cb5
commit d4e1683688

37
.gitattributes vendored Normal file
View File

@@ -0,0 +1,37 @@
# Auto detect text files and perform LF normalization
* text=auto
# Source code
*.c text
*.h text
*.js text
*.json text
*.rs text
# Documentation
*.md text
*.txt text
# Configuration
*.toml text
*.gyp text
# Scripts
*.sh text eol=lf
# Binary files
*.node binary
*.o binary
*.a binary
*.so binary
*.dylib binary
*.dll binary
# Git
.gitattributes text
.gitignore text
# Linguist overrides
src/parser.c linguist-generated
src/grammar.json linguist-generated
src/node-types.json linguist-generated