Delete `␍`eslint(prettier/prettier)错误
使用VSCode开发Vue3项目,编辑的文本中每行都有Delete
"rules": {
"prettier/prettier": ["error", { "endOfLine": "auto" }]
}
␍
eslint(prettier/prettier)错误,查找原因发现是Windows系统下,按回车时插入回车和换行CRLF两个符号,而这在eslint看来是警告错误,解决办法是在.eslintrc.cjs中增加配置,说明这种情况不是错误:"rules": {
"prettier/prettier": ["error", { "endOfLine": "auto" }]
}
posted on 2022-10-01 08:14 zyp_java_net 阅读(1465) 评论(0) 编辑 收藏 举报