ESLint CRLF Windows
See original GitHub issueKept 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:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top 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 >
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 Free
Top 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
Thanks for the PR update.
We’ve got LF specified in the current
.editorconfig
already.Thanks for update. https://github.com/JosephusPaye/Keen-UI/commit/9dd56b436d2c6d179e7f5a080d8a9d783c0e51e3 looks to me that
.gitattributes
without.eslintrc
edits saves the day.