在项目中配置 prettier 的配置文件 package.json 中配置 prettier 属性.prettierrc 文件.prettierrc.js 或者 .prettierrc.json 文件.prettierrc.toml 文件 在 prettier 的配置文件中去做一些配置即可