Last active
August 6, 2018 07:31
-
-
Save foreverplay/31c7988c2d69c033d7d204bca90275df to your computer and use it in GitHub Desktop.
Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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