Skip to content

Commit

Permalink
Declare that we want git to check files out with unix line endings
Browse files Browse the repository at this point in the history
This is critical for parser tests to run on Windows. Otherwise git will check them out with `\r\n` endings and you'll see a snapshot diff in the parser tests. It's what ruff and biome both do.

We will also need this file to explicitly declare `eof=crlf` on files when we want to add crlf specific tests
  • Loading branch information
DavisVaughan committed Nov 27, 2024
1 parent 7807d2e commit 5ba921f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf

0 comments on commit 5ba921f

Please sign in to comment.