eslint报LF和CRLF错误(Expected linebreaks to be ‘CRLF‘ but found ‘LF‘)

直接说解决方法:

在vscode右下角找到更改格式的地方改成CRLF

eslint报LF和CRLF错误(Expected linebreaks to be ‘CRLF‘ but found ‘LF‘)_第1张图片

如果保存时他自动更改为LF的话,去找到editorconfig在这里插入图片描述
在里面的end_of_line = LF -> end_of_line = CRLF

eslint报LF和CRLF错误(Expected linebreaks to be ‘CRLF‘ but found ‘LF‘)_第2张图片

你可能感兴趣的:(Vue,Js基础知识,javascript)