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"],


相关文章
|
3月前
|
Python
完美解决丨File “invalid.py“, line 1 print(`Hello World!`) ^ SyntaxError: invalid syntax
完美解决丨File “invalid.py“, line 1 print(`Hello World!`) ^ SyntaxError: invalid syntax
|
9月前
error C2449: found ‘{‘ at file scope (missing function header?)和error C2059: syntax error : ‘}‘
error C2449: found ‘{‘ at file scope (missing function header?)和error C2059: syntax error : ‘}‘
72 0
|
10月前
error C2041: illegal digit ‘9‘ for base ‘8‘ | error C2059: syntax error: ‘bad suffix on number‘
error C2041: illegal digit ‘9‘ for base ‘8‘ | error C2059: syntax error: ‘bad suffix on number‘
95 0
|
10月前
Newline required at end of file but not found.
Newline required at end of file but not found.
102 0
Newline required at end of file but not found.
syntax error, expect {, actual [, pos 0 at
syntax error, expect {, actual [, pos 0 at
121 0
|
JSON fastjson 数据格式
报错:JSONException: illegal identifier : {pos 1, line 1, column 2{{"group":"trade_p0&qu
报错:JSONException: illegal identifier : {pos 1, line 1, column 2{{"group":"trade_p0&qu
463 0
成功解决ParserError: Error tokenizing data. C error: Expected 2 fields in line 53, saw 3
成功解决ParserError: Error tokenizing data. C error: Expected 2 fields in line 53, saw 3
|
开发工具 Android开发 git
Android Studio完美解决 you are about to commit crlf line separators,warning: CRLF will be replaced by LF
Android Studio完美解决 you are about to commit crlf line separators,warning: CRLF will be replaced by LF
924 0
Android Studio完美解决 you are about to commit crlf line separators,warning: CRLF will be replaced by LF
|
SQL 关系型数据库 数据库
[Err] ERROR: invalid input syntax for integer: "1.0"
[Err] ERROR: invalid input syntax for integer: "1.0"
957 0
[Err] ERROR: invalid input syntax for integer: "1.0"
如何处理错误消息Unable to install breakpoint due to missing line number attributes
如何处理错误消息Unable to install breakpoint due to missing line number attributes
158 0
如何处理错误消息Unable to install breakpoint due to missing line number attributes

热门文章

最新文章