当前位置:
首页 >
error Expected linebreaks to be 'CRLF' but found 'LF' linebreak-style
发布时间:2024/1/1
30
豆豆
生活随笔
收集整理的这篇文章主要介绍了
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年中国一体化压铸行业概览:*引领