Delete `␍`eslint(prettier/prettier)

处理方法1

执行该命令

yarn run lint --fix

处理方法2

A 如果存在.prettierrc文件添加如下配置

"endOfLine": "auto"

B 如果不存在该文件 打开vscode编辑器的setting.json文件添加如下配置

  "prettier.endOfLine": "auto", // 结尾是 \n \r \n\r auto

你可能感兴趣的:(esLint,vscode,编辑器,javascript,esLint,prettier)