Expected linebreaks to be 'CRLF'
2024-01-04 本文已影响0人
survivorsfyh
Mac 环境下拉取项目抛出如下异常
Expected linebreaks to be 'CRLF' but found 'LF'.eslintlinebreak-style
解决办法
将项目 eslintrc.js 文件中的 linebreak-style 子项切换为 windows 或 unix 即可
Windows 系统则为 windows
Mac 系统则为 unix
module.exports = {
"rules": {
"linebreak-style": [
"error",
// "windows"
"unix"
],
}
};
以上便是此次分享的全部内容,希望能对大家有所帮助!