美文网首页Development
Expected linebreaks to be 'CRLF'

Expected linebreaks to be 'CRLF'

作者: survivorsfyh | 来源:发表于2024-01-04 11:31 被阅读0次

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"
        ],
    }
};

以上便是此次分享的全部内容,希望能对大家有所帮助!

相关文章

网友评论

    本文标题:Expected linebreaks to be 'CRLF'

    本文链接:https://www.haomeiwen.com/subject/dtfbndtx.html