error Expected linebreaks to be 'CRLF' but found 'LF' linebreak-style
生活随笔
收集整理的這篇文章主要介紹了
error Expected linebreaks to be 'CRLF' but found 'LF' linebreak-style
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在前端編譯時遇到編輯器提示錯誤?error ?Expected linebreaks to be 'CRLF' but found 'LF' ?linebreak-style,是因為不同系統不同工具下換行符的問題。
修改?.eslintrc.js文件,我是MacOS是把linebreak-style: ["error", "windows"],改成linebreak-style: ["error", "unix"]就解決了問題。
或者可以'linebreak-style': 'off' 直接禁用該規則。
總結
以上是生活随笔為你收集整理的error Expected linebreaks to be 'CRLF' but found 'LF' linebreak-style的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: WEB网站访问的过程
- 下一篇: 2022年中国一体化压铸行业概览:*引领