From 66b25aded4d61974c2ce8c170d1d315194bd625f Mon Sep 17 00:00:00 2001 From: Nawid Salehie <102778966+Nawid3333@users.noreply.github.com> Date: Mon, 7 Sep 2026 17:56:38 +0200 Subject: [PATCH] build: add .gitattributes so Windows checkouts get LF endings With core.autocrlf=true (the Windows default), git hands the working tree CRLF, and eslint-config-google linebreak-style then reports an error on every single line - 2352 of them across the repo, i.e. lint is unusable on Windows. The repository content is already LF throughout, so this file changes checkout behaviour only and produces no content diff. * text=auto eol=lf checks out all text files with LF. Binary assets are pinned so they are never converted: png, wasm, ort, zip, xpi. Verified on Windows 11: a fresh clone with this file lints at 0 errors, where the same clone without it reports 2352. --- .gitattributes | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..6360bc2b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,15 @@ +# Store and check out all text files with LF endings. +# +# Without this, core.autocrlf=true (the Windows default) hands the working +# tree CRLF, and eslint-config-google's linebreak-style rule then reports an +# error on every single line - 2352 of them across this repo. The repository +# content is already LF throughout, so this changes checkout behaviour only +# and produces no content diff. +* text=auto eol=lf + +# Binary assets: never convert. +*.png binary +*.wasm binary +*.ort binary +*.zip binary +*.xpi binary