50 lines
906 B
Plaintext
50 lines
906 B
Plaintext
# Set default behavior: auto-detect text files and normalize line endings to LF
|
|
* text=auto eol=lf
|
|
|
|
# Markdown and documentation
|
|
*.md text eol=lf
|
|
*.txt text eol=lf
|
|
|
|
# Web & Programming languages
|
|
*.js text eol=lf
|
|
*.jsx text eol=lf
|
|
*.ts text eol=lf
|
|
*.tsx text eol=lf
|
|
*.html text eol=lf
|
|
*.css text eol=lf
|
|
*.scss text eol=lf
|
|
*.json text eol=lf
|
|
*.py text eol=lf
|
|
*.sql text eol=lf
|
|
|
|
# Configuration & data
|
|
*.yml text eol=lf
|
|
*.yaml text eol=lf
|
|
*.toml text eol=lf
|
|
*.xml text eol=lf
|
|
*.env* text eol=lf
|
|
|
|
# Shell scripts must strictly use LF
|
|
*.sh text eol=lf
|
|
*.bash text eol=lf
|
|
|
|
# Windows scripts require CRLF
|
|
*.bat text eol=crlf
|
|
*.cmd text eol=crlf
|
|
*.ps1 text eol=crlf
|
|
|
|
# Binary formats (prevent line ending conversion and diff corruption)
|
|
*.png binary
|
|
*.jpg binary
|
|
*.jpeg binary
|
|
*.gif binary
|
|
*.webp binary
|
|
*.ico binary
|
|
*.pdf binary
|
|
*.zip binary
|
|
*.tar.gz binary
|
|
*.woff binary
|
|
*.woff2 binary
|
|
*.ttf binary
|
|
*.eot binary
|