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

Posted 王同学要努力

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error:Expected linebreaks to be ‘LF‘ but found ‘CRLF‘ linebreak-style相关的知识,希望对你有一定的参考价值。

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

报错如下

解决办法

报错的原因主要是Eslint 导致的

找到eslintrc.js文件,在rules下添加以下代码即可解决此问题

'linebreak-style': [0, "error", "windows"],

以上是关于Error:Expected linebreaks to be ‘LF‘ but found ‘CRLF‘ linebreak-style的主要内容,如果未能解决你的问题,请参考以下文章

Vue-cli中构建的Vue项目中Expected linebreaks to be 'CRLF' but found 'LF'

聊一聊新建项目eslint报错Expected linebreaks to be ‘LF‘ but found ‘CRLF‘ 的坑点

聊一聊新建项目eslint报错Expected linebreaks to be ‘LF‘ but found ‘CRLF‘ 的坑点

聊一聊新建项目eslint报错Expected linebreaks to be ‘LF‘ but found ‘CRLF‘ 的坑点

Error: Expected resource of type xxx [ResourceType]

错误:运行播放多项目时预期的字母..