Delete'cr'[prettier / prettier] 运行项目报错error Replace `xxx` with `··xxx·` prettier/prettier 解决办法

问题:在运行项目时报错

 

原因:

linux系统和Windows系统换行符不一致,要根据实际情况切换LF或CRLF,如果不想每个页面切换,可用以下方法

解决:

在eslintrc.js文件的rules中添加

"prettier/prettier": "off"

也可参照这个网址

https://www.52dianzi.com/category/article/d744354810ab2136735ac9bdc0d8b676.html 

posted @ 2023-11-29 10:43  pyx204  阅读(1246)  评论(0)    收藏  举报