1. 在根目录新建.prettierrc.json
2.
{ "singleQuote": true, // 设置单引号,true为单引号 "semi": true // 设置句尾的分号,true为加上分号 }