Merged
Conversation
Contributor
|
Isn't prettier endOfLine already enforced. Its default value is OK, if someone is configured GIT property |
Contributor
Author
|
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>
.
|
Contributor
Author
|
@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. |
Contributor
|
Actually same happens with linux until you run |
Contributor
Author
|
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>
.
|
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Windows
autocrlfistruewhich 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)