请在使用前确保您本地安装了 prettier
# use pnpm
pnpm install -D prettier-config-common
# use yarn
yarn add prettier-config-common --dev
# use npm
npm install prettier-config-common -D
编辑您项目 package.json 加上下面这一行
{
"prettier": "prettier-config-common"
}
// 编辑.prettierrc.js
module.exports = require('prettier-config-common')
- Fork the repository
- Create Feat_xxx branch
- Commit your code
- Create Pull Request
- You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md
- My Gitee:https://gitee.com/saqqdy
- My Github:https://github.com/saqqdy
- My npm:https://npmjs.com/~saqqdy
- My porsonal site http://www.saqqdy.com