Skip to content

Commit dc59453

Browse files
committed
chore: standardize husky configuration
1 parent 155b4b4 commit dc59453

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npx lint-staged
1+
npx lint-staged

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"prettier": "prettier --write --ignore-unknown .",
3838
"start": "dumi dev",
3939
"test": "rc-test",
40-
"tsc": "tsc --noEmit"
40+
"tsc": "tsc --noEmit",
41+
"prepare": "husky"
4142
},
4243
"dependencies": {
4344
"@rc-component/dropdown": "~1.0.0",
@@ -89,5 +90,8 @@
8990
"style": "./assets/index.css",
9091
"publishConfig": {
9192
"access": "public"
93+
},
94+
"lint-staged": {
95+
"*": "prettier --write --ignore-unknown"
9296
}
9397
}

0 commit comments

Comments
 (0)