Backdoor Cipher提出了一个问题：Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style in Eslint using gulp，或许与您遇到的问题类似。
Check if you have the
linebreak-stylerule configure as below either in your .eslintrc or in source code:
/*eslint linebreak-style: ["error", "unix"]*/
Since you're working on Windows, you may want to use this rule instead:
/*eslint linebreak-style: ["error", "windows"]*/
Refer to the documentationof
When developing with a lot of people all having different editors, VCS applications and operating systems it may occur that different line endings are written by either of the mentioned (might especially happen when using the windows and mac versions of SourceTree together).
The linebreaks (new lines) used in windows operating system are usually carriage returns (CR) followed by a line feed (LF) making it a carriage return line feed (CRLF) whereas Linux and Unix use a simple line feed (LF). The corresponding control sequences are
"\n"(for LF) and
This is a rule that is automatically fixable. The
--fixoption on the command line automatically fixes problems reported by this rule.
But if you wish to retain
CRLFline-endings in your code (as you're working on Windows) do not use the