Skip to content

Commit

Permalink
chore: add husky for precommit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Stevens committed Dec 21, 2023
1 parent 2a8435f commit 14b6b05
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run ci:tsc
npm run ci:eslint
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"private": true,
"scripts": {
"prepare": "panda codegen",
"prepare": "panda codegen && husky install",
"build:svg": "tsx scripts/svg-sprite.ts",
"dev": "rm -rf .next && next dev -p 4000",
"build": "next build",
Expand Down Expand Up @@ -45,6 +45,7 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"glob": "^10.3.10",
"husky": "^8.0.3",
"prettier": "^3.1.1",
"release-it": "^17.0.1",
"svg-sprite": "^2.0.2",
Expand Down

0 comments on commit 14b6b05

Please sign in to comment.