Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add .gitattributes to force LF line ends #12010

Merged
merged 2 commits into from Feb 11, 2022
Merged

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

.gitattributes Outdated Show resolved Hide resolved
@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.

None yet

4 participants