Skip to content

Commit d7c73fd

Browse files
committed
chore: standardize husky configuration
1 parent e62e61e commit d7c73fd

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.husky/pre-commit

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

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"prettier": "prettier --write --ignore-unknown .",
4343
"start": "dumi dev",
4444
"test": "rc-test",
45-
"tsc": "tsc --noEmit"
45+
"tsc": "tsc --noEmit",
46+
"prepare": "husky"
4647
},
4748
"dependencies": {
4849
"@rc-component/util": "^1.11.1",
@@ -85,5 +86,8 @@
8586
"style": "./assets/index.css",
8687
"publishConfig": {
8788
"access": "public"
89+
},
90+
"lint-staged": {
91+
"*": "prettier --write --ignore-unknown"
8892
}
8993
}

0 commit comments

Comments
 (0)