耳一文

关注

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

耳一文

关注

阅读 63

2022-07-12

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

报错如下

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

解决办法

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

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

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

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


相关推荐

承蒙不弃

vscode部署Vue项目时遇到Expected linebreaks to be 'LF' but found 'CRLF'解决

承蒙不弃 48 0 0

人间四月天i

warning: LF will be replaced by CRLF in XXXXXX

人间四月天i 151 0 0

搬砖的小木匠

[Git使用] warning: LF will be replaced by CRLF

搬砖的小木匠 84 0 0

船长_Kevin

warning LF will be replaced by CRLF in file

船长_Kevin 164 0 0

RIOChing

error: expected '(' for function-style cast or type construction

RIOChing 72 0 0

耶也夜

git add 报错 warning: LF will be replaced by CRLF

耶也夜 70 0 0

半夜放水

Error:Unexpected lock protocol found in lock file. Expected 3, found 0

半夜放水 136 0 0

勇敢的趙迦禾

git提示“warning: LF will be replaced by CRLF”的解决办法

勇敢的趙迦禾 83 0 0

松鼠树屋

解决 error: style attribute '@android:attr/windowEnterAnimation' not found.

松鼠树屋 102 0 0

双井暮色

GIT Error:- expected committer email ‘‘ but found ‘karan@xyz.com‘

双井暮色 43 0 0

精彩评论(0)

0 0 举报