From 49323d91df34d224a1e916c6269b1ea26d93c2c4 Mon Sep 17 00:00:00 2001 From: poli0981 <127664709+poli0981@users.noreply.github.com> Date: Wed, 28 Oct 2026 22:59:07 +0700 Subject: [PATCH] chore: check text files out with LF on every platform A Windows clone with core.autocrlf=true checked every text file out with CRLF, and Biome's formatter (which expects LF) then failed `npm run lint` on all 114 files before a single line had been edited. The two scripts with a `#!/usr/bin/env node` line were also unusable from WSL. `eol=lf` fixes the checkout, not the repository: the index already held LF everywhere (`git add --renormalize .` stages nothing else), and tests/fixtures/** stays -text so the CRLF records the CSV fixtures exist to exercise are untouched. Co-Authored-By: Claude Opus 5.5 --- .gitattributes | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index 1c7b63d..947dcaa 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,10 @@ -# Default: normalize to LF in the repo, check out native. -* text=auto +# Default: normalize to LF in the repo AND in every checkout. +# +# `eol=lf` and not "check out native": Biome's formatter (and every gate built +# on it) expects LF, so a Windows clone with core.autocrlf=true used to fail +# `npm run lint` on all 114 files before a single line had been edited. The +# two `#!/usr/bin/env node` scripts are also unusable from WSL with CRLF. +* text=auto eol=lf # Fixtures are byte-exact samples of what real browsers and spreadsheets emit. # EOL normalization would rewrite the CRLF records in the CSV exports, so a