Expected linebreaks to be ‘LF’ but found ‘CRLF’ linebreak-style

When using eslint in the gulp project i have encountered a problem with error like this Expected linebreaks to be ‘LF’ but found ‘CRLF’ linebreak-style and I am using Windows environment for the running gulp and the entire error log is given below Kiran (master *) Lesson 4 $ gulp Using gulpfile c:\Users\Sai\Desktop\web-build-tools\4\ gulpfile.js Starting … Read more

What does Visual Studio mean by normalize inconsistent line endings?

Visual Studio occasionally tells me: The line endings in the following files are not consistent. Do you want to normalize the line endings? It then gives me a drop down with different standards or something, such as Windows, Mac, Unix, and a couple of Unicode ones. What does this mean and what is going to … Read more

Trying to fix line-endings with git filter-branch, but having no luck

I have been bitten by the Windows/Linux line-ending issue with git. It seems, via GitHub, MSysGit, and other sources, that the best solution is to have your local repos set to use linux-style line endings, but set core.autocrlf to true. Unfortunately, I didn’t do this early enough, so now every time I pull changes the … Read more