预期换行符为“LF”,但发现“CRLF”换行符样式
2022-08-30 00:20:23
在 gulp 项目中使用 eslint 时,我遇到了这样的错误问题
,我正在使用 Windows 环境进行 gulp 运行,下面给出了整个错误日志Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style
Kiran (master *) Lesson 4 $ gulp
Using gulpfile c:\Users\Sai\Desktop\web-build-tools\4\
gulpfile.js
Starting 'styles'...
Finished 'styles' after 17 ms
Starting 'lint'...
'lint' errored after 1.14 s
ESLintError in plugin 'gulp-eslint'
sage: Expected linebreaks to be 'LF' but found 'CRLF'.
ails: fileName: c:\Users\Sai\Desktop\web-build-tools\4\js\extra.js
$>Users\Sai\Desktop\web-build-tools\4\js\extra.js
error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style
我还包含额外的.js文件作为指示可能错误的错误。
function getWindowHeight() {
return window.innerHeight;
}
getWindowHeight();