my prettier config
Eslint + Prettier + Husky + Commitlint + Lint-staged
yarn add -D @anlyyao/prettier-config {
"prettier": "@anlyyao/prettier-config"
} module.exports = require("@anlyyao/prettier-config");`eslint`
`lint-staged` : 对暂存区的文件执行lint校验yarn add -D @anlyyao/prettier-config{
"prettier": "@anlyyao/prettier-config"
}module.exports = require('@anlyyao/prettier-config');// 代码格式化(测试,全局)
npx prettier --write .git commit --no-verify -m "xxx"