启动的时候出现 error Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style
mawenge opened this issue · 7 comments
mawenge commented
开发环境是windows,请问是不是哪里需要配置
jackhutu commented
配置了eslint代码检查, linebreak-style 这一行估计在windows要改一下.
mawenge commented
解决了,在.eslintrc.json文件中把rules下面的"linebreak-style": [
"error",
"windows"
],
修改成
"linebreak-style":0,
就可以了
gulp配置也不太懂,现在看这个项目暂时略过gulp应该没什么影响吧
jackhutu commented
完全没影响, 只是用来启动webpack而已
Lover103 commented
Adding a .editorconfig plugin for your IDE/editor solves it?
This file configures the editor to add an LF on line endings: https://github.com/diegohaz/arc/blob/master/.editorconfig
kvsur commented
解决了,在.eslintrc.json文件中把rules下面的"linebreak-style": [
"error",
"windows"
],
修改成
"linebreak-style":0,
就可以了
gulp配置也不太懂,现在看这个项目暂时略过gulp应该没什么影响吧
@mawenge 有些版本或者在rules中没有linebreak-style这个配置项,有时候需要自己加上就可以了
yudetchu commented
感恩
adouwt commented