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

always set js to lf #2795

Merged
merged 2 commits into from
Apr 20, 2018
Merged

always set js to lf #2795

merged 2 commits into from
Apr 20, 2018

Conversation

Stanzilla
Copy link
Collaborator

if on auto, Windows will change them to crlf locally and this can make lint fail

@paulcbetts thoughts?

@sindresorhus
Copy link
Contributor

This will corrupt images, as you're now saying that Git should convert all files to lf, even binary.

What you want is:

* text=auto
*.js text eol=lf

I wish Git supported a way to say "make all text files LF"…

@Stanzilla
Copy link
Collaborator Author

Oh thanks!

@Stanzilla Stanzilla changed the title always set text to lf always set js to lf Apr 1, 2018
Copy link
Contributor

@albinekb albinekb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks sindre for noticing 🙏

@chabou chabou added this to the 2.1.0 milestone Apr 5, 2018
@chabou chabou merged commit 35cf8c8 into vercel:canary Apr 20, 2018
@Stanzilla Stanzilla deleted the lf branch April 20, 2018 15:12
chabou pushed a commit that referenced this pull request Dec 15, 2018
always set text to lf, if on auto, Windows will change them to crlf locally and this can make lint fail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants