Commit 349e189
authored
tooling: Force LF line endings via .gitattributes. (#397)
Closes #396.
Contributors on Windows + WSL hit a shebang error on husky hooks because
Git for Windows defaults to core.autocrlf=true and rewrites
.husky/pre-commit with CRLF line endings on checkout. The trailing \r
turns `#!/usr/bin/env sh` into a shebang that WSL cannot resolve.
This repo is developed exclusively on Linux / macOS / WSL — no file here
should ever be CRLF. Pin every text file to LF via `* text=auto eol=lf`
and declare common binary artifacts explicitly so no conversion is
attempted on them.1 parent eb594a8 commit 349e189
1 file changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments