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

报错如下

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

解决办法

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

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

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

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