mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
⚡ prettier before commit
This commit is contained in:
parent
b780070351
commit
ca665dbc60
18
package.json
18
package.json
@ -236,23 +236,9 @@
|
||||
"lint-staged"
|
||||
],
|
||||
"lint-staged": {
|
||||
"components/**/*.tsx": [
|
||||
"npm run lint-staged:ts",
|
||||
"node ./scripts/prettier.js --pre",
|
||||
"**/*.{js,jsx,tsx,ts,less,md,json}": [
|
||||
"prettier --write",
|
||||
"git add"
|
||||
],
|
||||
"{tests,site,scripts,components}/**/*.{js,jsx}": [
|
||||
"npm run lint-staged:es",
|
||||
"node ./scripts/prettier.js --pre",
|
||||
"git add"
|
||||
],
|
||||
"{site,components}/**/*.less": [
|
||||
"stylelint --syntax less",
|
||||
"node ./scripts/prettier.js --pre",
|
||||
"git add"
|
||||
],
|
||||
"components/*/demo/*.md": [
|
||||
"npm run lint-staged:demo"
|
||||
]
|
||||
},
|
||||
"sideEffects": [
|
||||
|
Loading…
Reference in New Issue
Block a user