Skip to content

Commit

Permalink
chore: add recommended husky config
Browse files Browse the repository at this point in the history
  • Loading branch information
gtoselli committed Jan 9, 2024
1 parent a825ab9 commit 995003f
Show file tree
Hide file tree
Showing 3 changed files with 9 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"

pnpm check
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
"prepublishOnly": "pnpm run build",
"postinstall": "husky install",
"prepare": "husky install",
"check": "cspell lint --quiet src/**/*ts"
},
"dependencies": {
Expand Down

0 comments on commit 995003f

Please sign in to comment.