Advertisement

修复 error 删除 `␍` 的 prettier 错误

阅读量:

修复 error Delete prettier/prettier 错误

    • 问题背景
      • 错误提示信息
      • 引发错误的因素
      • 应对措施
        • 调整CRLF----适用于单一文件
        • 通过执行yarn run lint --fix命令实现自动修正(由官方提供)

问题背景概述

今日在借助 openapi 工具自动生成前端接口代码的过程中,出现了一个类似 eslint 规范的错误提示,随后排查发现,该问题可能源于换行符不一致所引发的规范冲突。

报错信息

在这里插入图片描述
复制代码
    You may use special comments to disable some warnings.
    Use // eslint-disable-next-line to ignore the next line.
    Use /* eslint-disable */ to ignore all warnings in a file.
    ERROR in [eslint]          

全部评论 (0)

还没有任何评论哟~