question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ESLint CRLF Windows

See original GitHub issue

Kept receiving the following error when using Windows

Expected linebreaks to be LF but found CRLF. linebreak-style

This is even on the next branch without any changes.

I know windows is a sucky OS, but git converts the CRLF back to LF when committing anyway, and this is just after a git checkout with no edits so 🤷

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
JosephusPayecommented, Jun 12, 2020

Thanks for the PR update.

We’ve got LF specified in the current .editorconfig already.

0reactions
Lewiscowles1986commented, Dec 31, 2021

Thanks for update. https://github.com/JosephusPaye/Keen-UI/commit/9dd56b436d2c6d179e7f5a080d8a9d783c0e51e3 looks to me that .gitattributes without .eslintrc edits saves the day.

Read more comments on GitHub >

github_iconTop Results From Across the Web

linebreak-style - ESLint - Pluggable JavaScript Linter
The linebreaks (new lines) used in windows operating system are usually carriage returns (CR) followed by a line feed (LF) making it a...
Read more >
How can I write a ESLint rule for "linebreak-style", changing ...
For enforcing windows line endings ( \r\n ) use crlf . This option is preferable since it avoids all line ending changes to...
Read more >
Fixing the linebreak-style eslint error for Windows #171 - GitHub
The CRLF setting stands for "Carriage Return, Line Feed" and represents the combination \r\n , which is used on Windows. Setting the linebreak- ......
Read more >
Dealing with line endings in Windows with Git and ESLint
Windows adds two characters to mark the end of lines, when you press Enter on your keyboard. It adds the carriage return (CR...
Read more >
'Fix current file with ESLint' doesn't replace line endings when ...
Invoke 'Fix current file' on highlighted linebreak-style errors. Expected: error highlighting disappears, LFs are replaced with CRLF on disk. Actual: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found