yarn add @commitlint/cli
yarn add @commitlint/config-conventional
yarn add lint-staged
yarn ad yorkie
yarn add prettier
yarn add @umijs/fabric
yarn add commitizen
npm install --save-dev --save-exact prettier
yarn add --dev --exact prettier
# 新建 prettierrc.json
echo {}> .prettierrc.json
# 新建 .prettierignore
echo .prettierignore
prettierignore
# Ignore artifacts:
build
coverage
# Ignore all HTML files:
*.html
react配置 prettier
eslint-config-prettier
https://github.com/prettier/eslint-config-prettier#installation
npm install --save-dev eslint-config-prettier
{
"extends": [
"some-other-config-you-use",
"prettier"
]
}
用 Prettier的格式化配置,去覆盖之前的配置