Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

报错: Expected linebreaks to be ‘LF’ but found ‘CRLF’ #18

Open
padro1617 opened this issue Oct 26, 2017 · 2 comments
Open

Comments

@padro1617
Copy link

我本地用的是windows系统
本地运行前端 执行 npm run dev 会报如上错误

我已经找到解决办法
http://www.wuyfdevo.com/archives/378

@gmkhussain
Copy link

Open package.json, added following rules under rules line:

"rules": {
  "linebreak-style": 0,
  "global-require": 0,
  ...

for VScode users: click the option at the bottom-right of the window and set it to LF from CRLF
errors will fixed for me

@kirito141211
Copy link

打开 .eslintrc.json 将其中

        "linebreak-style": ["error", "windows"],   // 换行风格

改为

        "linebreak-style": ["error", "unix"],   // 换行风格

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants