## Goal `npm run format:check` (and so `npm run check`) passes on every machine, also on Windows. ## Problem On Windows, Prettier reports almost every file (181 in `frontend/`), also files nobody has changed, such as `tsconfig.json` and `vite.config.ts`. The files in the repository use LF. Git on Windows usually has `core.autocrlf=true`, which turns LF into CRLF in the working copy. Prettier expects LF (`endOfLine: "lf"`, the default), so it reports every file. Git also warns «LF will be replaced by CRLF» on `git add`. Check on your machine: git config core.autocrlf # true file frontend/src/test/setup.ts # «with CRLF line terminators» Running `prettier --write` is not a fix: it would change 181 files without changing anything real. ## Tasks - [ ] Add `.gitattributes` in the repository root with `* text=auto eol=lf`, so Git uses LF in the working copy on every machine - [ ] Check that nothing in the repository changes (the files already use LF) - [ ] Tell the group to refresh their working copy once after the merge (with a clean `git status`): `git pull`, `git rm -r --cached -q .`, `git reset --hard` ## Done when - `npm run format:check` passes on Windows after the refresh - `git add` no longer warns about LF and CRLF