Skip to content

Commit

Permalink
add husky
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Nov 7, 2023
1 parent 48ed72e commit 4119cf2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc",
"prettier": "prettier"
"prettier": "prettier",
"prepare": "husky install"
},
"dependencies": {
"@docusaurus/core": "3.0.0",
Expand Down

0 comments on commit 4119cf2

Please sign in to comment.