在项目根目录下的.prettierrc文件中写入即可
.prettierrc
"endOfLine": "auto"
prettier
Why do I keep getting Delete ‘cr’ [prettier/prettier]?