error: Expected linebreaks to be 'LF' but found 'CRLF'
1. 启用了eslint
2. 换行符不符合规则
解决方式:设置换行的判断规则
打开.eslintrc.js

rules: {
  'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  'linebreak-style': ["error", "windows"], //我这个版本是添加了这样一行,声明这是windows操作系统即可。
},

 

相关文章:

  • 2021-09-09
  • 2021-08-02
  • 2022-12-23
猜你喜欢
  • 2021-06-17
  • 2021-05-23
  • 2022-12-23
  • 2021-09-23
  • 2022-01-10
  • 2022-12-23
  • 2021-11-04
相关资源
相似解决方案