Reputation: 462
I run VSC, I use the configuration file for airbnb for ESlint.
And when I wanted to test it, I tried this:
const a = 'a';
const b = `${a}Hi`;
const d = function () {
return b;
};
d();
The problem is that it keeps giving me errors about linebreaks:
Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
There are 6 type of this error, plus this:
Unexpected unnamed function. (func-names)
It's getting annoying and I'm guessing it is because of the guide used, right?
Upvotes: 0
Views: 591
Reputation: 1309
To sum up: The difference between linebreaks is analysed here: Difference between CR LF, LF and CR line break types?
In order to change between CRLF and LF in Visual Studio Code you click on the bottom right side where the selected option is displayed.
For the func-names reference: func-names
Upvotes: 2