Skip to content

Conversation

@soryy708
Copy link
Contributor

Summary

Working on Windows, my git decided to automatically convert LF line ends to CRLF.
This makes yarn test fail with a lot of same errors from prettier asking to delete ␍.
By adding a .gitattributes file we can configure which files we expect to always have LF line ends, so that git respects it regardless of local environment configuration. So all files will be with LF file endings (no ␍) regardless of the OS.

Test plan

N/A

@SimenB SimenB changed the title Add .gitattributes to force LF line ends chore: add .gitattributes to force LF line ends Feb 11, 2022
@SimenB SimenB merged commit 60eb416 into jestjs:main Feb 11, 2022
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants