Skip to content

Instantly share code, notes, and snippets.

@foreverplay
Last active August 6, 2018 07:31
Show Gist options
  • Save foreverplay/31c7988c2d69c033d7d204bca90275df to your computer and use it in GitHub Desktop.
Save foreverplay/31c7988c2d69c033d7d204bca90275df to your computer and use it in GitHub Desktop.
Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style
vue-cli 3脚手架创建的项目,选项中使用了ESLint;
在Mac上使用一直没有问题,但是clone到windows pc上就出现了
Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style
这个bug
具体解决办法:
修改.eslintrc 文件
rules:{
"linebreak-style": ["error", "unix"],//非windows pc
"linebreak-style": ["error", "windows"],// windows
}
update:
rules:{
"linebreak-style": 0,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment