chore: normalize line endings to LF via .gitattributes (#81)

This commit is contained in:
Ethan Stoner 2026-08-31 13:24:57 -07:00 committed by GitHub
parent 314a0e1c2e
commit ac927de71a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 20 additions and 0 deletions

20
.gitattributes vendored Normal file
View File

@ -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