-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
Add .gitattributes
file to make line endings more consistent
#4679
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
I would advise against this, for the same reasons that we don't have a formatting check anymore. It becomes a big, annoying barrier to contributions by others who don't set up their tooling the right way before writing some code. Also, git's autocrlf stuff is godawful. This is basically punishing all Windows devs 😆 |
@timdorr doesn't prettier already enforce LF EOL anyway? I'm open to ditching the gitattributes file but the prettierrc we use seems to already have this same opinion |
Not in Honestly, that's fine because nearly any editor outside of Notepad handles differing linebreak styles automatically. It also doesn't matter to end users because everything is run through our tooling, which normalizes everything anyways. |
prettierrc doesn't specify an option, and the default has been LF since Prettier 2 |
I develop entirely on Windows and afaik |
Apologies, I read the PR change backwards. Yeah, we're on LF for folks using Prettier. Nonetheless, I'm not a huge fan of "big bang", large reformat PRs. I'd just set the setting for changes going forward and leave the existing formatting alone. |
@timdorr my concern with that is that you then get spam in unrelated PRs as formatting gets updated 😕 |
Well, we have equivalent PRs sitting open in other repos, so it may not be as clean elsewhere. A lot of the changes are in files that aren't touched often, so I wouldn't expect a whole slew of file changes from new PRs after this. |
✅ Deploy Preview for redux-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@timdorr Would it be easier if I split this into multiple PRs? Or I can Bump Prettier, remove the |
Let's keep it simple and just make this PR the singular commit of 1d83caa. No need to complicate things by also doing a formatting run. We can make that a separate PR so the noise is kept down. Basically separate out the policy decision from the effects of that policy. Sort of equivalent to an RFC vs. implementation. Edit: I just bumped some of these things and formatted them on |
1e5abdc
to
4179157
Compare
@timdorr Awesome, thanks Tim! I'm gonna do the same with the othe repos. |
ec73f4c
to
2e7147e
Compare
50c7800
to
bda8a8a
Compare
Thanks! |
This PR:
.gitattributes
file to make line endings more consistent.