Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

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

Ethan Stonerac927de71a32
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 000000000..c3557f9b0
--- /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