UI_REACT: Cannot build on windows host due to prettier EOL error
See original GitHub issueHello, unfortunately I’m working in a windows environment. This means that, by default, git checks out all files with CRLF endings and commit with simple LF endings. Apparently, prettier by default expect the default line ending to be LF. But to me what they propose seems too much since, as I said, the default git config for windows transforms CRLF to LF when committing. If you agree, this can be easily fixed by adding:
"endOfLine":"auto"
In .prettierc
PS: I can open a PR if you agree on the fix.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10
Top Results From Across the Web
Fixing the linebreak-style eslint error for Windows #171 - GitHub
On Windows, with the current eslint setup, you get this error: Expected linebreaks to be 'LF' but found 'CRLF'. The eslint site says...
Read more >My create-react-app is failing to compile due to ESLint error
1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder. 2. Delete node_modules in your project folder. 3.
Read more >Build a fully production ready machine learning app with ...
Docker Guide - Build a fully production ready machine learning app with React, Django, and PostgreSQL on Docker ...
Read more >Release notes for Windows - Zoom Support
The process of joining a meeting is enhanced to combine the Please wait for the host to start this meeting window and the...
Read more >Bug listing with status UNCONFIRMED as at 2022/12/19 06 ...
Bug :128538 - "sys-apps/coreutils: /bin/hostname should be installed from coreutils not sys-apps/net-tools" status:UNCONFIRMED resolution: severity:enhancement ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Go with the
.prettierrc
😃Thanks for reporting this. I’d rather fix it as suggested by them, by hinting git to use LF by default:
You’ll have to reclone the repo then. Does that work for you?