From ac927de71a322991b513e45098326dbdfe8f9084 Mon Sep 17 00:00:00 2001 From: Ethan Stoner Date: Mon, 31 Aug 2026 13:24:57 -0700 Subject: [PATCH] chore: normalize line endings to LF via .gitattributes (#81) --- .gitattributes | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..c3557f9 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,20 @@ +# Check every text file out with LF on every platform. +# +# 44 unit test files read repository source with readFileSync and match it +# against multi-line regexes (src/scenes/director.test.mjs, +# src/cockpitMarkup.test.mjs, src/firstRunExperience.test.mjs, ...). Those +# patterns anchor on \n, so under Git's default core.autocrlf=true on Windows +# the sources check out with CRLF, every anchored pattern misses, and `npm test` +# fails 25 checks on an unmodified clone. Normalizing here keeps the working +# tree byte-identical on macOS, Linux, and Windows. +* text=auto eol=lf + +# Shell launchers must stay LF to run at all. +*.sh text eol=lf + +# Assets Git must never rewrite. +*.gif binary +*.png binary +*.glb binary +*.wav binary +*.pbf binary