git commit 提交 格式化代码

一,

yarn add --dev --exact prettier

二,

echo {}> .prettierrc.json

三,

prettier.json  文件添加

build

coverage

 

四,

yarn add eslint-config-prettier -D

在package.json "eslintConfig"添加"prettier"




 

 

参考链接:

https://prettier.io/docs/en/install.html

https://github.com/prettier/eslint-config-prettier#installation

 

 
posted @ 2022-10-17 21:23  yurro  阅读(173)  评论(0)    收藏  举报