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操作系統即可。 },