| # Normalize line endings across all platforms. | |
| # Prevents CRLF/LF churn when the same repo is used from Windows + Linux/macOS + CI. | |
| * text=auto eol=lf | |
| # --- Source files: always LF --- | |
| *.py text eol=lf | |
| *.pyi text eol=lf | |
| *.ts text eol=lf | |
| *.tsx text eol=lf | |
| *.js text eol=lf | |
| *.jsx text eol=lf | |
| *.mjs text eol=lf | |
| *.cjs text eol=lf | |
| *.json text eol=lf | |
| *.jsonc text eol=lf | |
| *.yml text eol=lf | |
| *.yaml text eol=lf | |
| *.toml text eol=lf | |
| *.md text eol=lf | |
| *.html text eol=lf | |
| *.css text eol=lf | |
| *.svg text eol=lf | |
| *.sh text eol=lf | |
| Dockerfile text eol=lf | |
| .env.example text eol=lf | |
| .gitignore text eol=lf | |
| .gitattributes text eol=lf | |
| # --- Windows-only files stay CRLF --- | |
| *.bat text eol=crlf | |
| *.cmd text eol=crlf | |
| *.ps1 text eol=crlf | |
| # --- Binary: leave alone --- | |
| *.png binary | |
| *.jpg binary | |
| *.jpeg binary | |
| *.gif binary | |
| *.webp binary | |
| *.pdf binary | |
| *.ico binary | |
| *.woff binary | |
| *.woff2 binary | |
| *.ttf binary | |
| *.otf binary | |
| *.zip binary | |
| *.tar binary | |
| *.gz binary | |