-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Enforce LF #1602
Enforce LF #1602
Conversation
Isn't prettier endOfLine already enforced. Its default value is OK, if someone is configured GIT property |
It's unrelated. This issue stems from the git configuration as I mention
above. On Windows the option is on by default which means prettier will
Flag all files.
This is the proper way to ensure LF will be used by git.
…On Sat, Dec 26, 2020, 16:33 5saviahv ***@***.***> wrote:
Isn't prettier endOfLine
<https://prettier.io/docs/en/options.html#end-of-line> already enforced.
Its default value is lf
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1602 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACVLNPJD2EWOFLVWMCSTZTSWXX4LANCNFSM4VJ5EMAQ>
.
|
@fb55 this is how it is on Windows 10 with the default git settings:
This patch enforces LF which gets rids of this issue. Alternatively, I guess you could change prettier's settings. |
Actually same happens with linux until you run |
That's wrong, though. I don't want to end up with modified line endings in
my local local repo. Hence why this patch should be merged or prettier
should be adapted to stop touching the line endings.
…On Sun, Dec 27, 2020, 17:29 5saviahv ***@***.***> wrote:
Actually same happens with linux until you run npm run format:prettier
after that those errors go away.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1602 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACVLNOOMBTX74SZLEFLGNDSW5HG3ANCNFSM4VJ5EMAQ>
.
|
On Windows
autocrlf
istrue
which results in CRLF being using thus prettier was complaining. This should always use LF regardless of OS or git settings and should work on git >= 2.10.Refs #1599 (comment)