Skip to content

Commit 517e335

Browse files
committed
chore: add pre-push git hooks
1 parent f2a5c4e commit 517e335

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

.husky/pre-push

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm run format
5+
npm run test
6+
npm run build

package-lock.json

+22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"format:fix": "prettier --write .",
1313
"lint": "next lint",
1414
"generate": "./hack/generate_types.sh",
15+
"prepare": "husky",
1516
"test": "jest",
1617
"test:watch": "jest --watch",
1718
"test:ci": "jest --ci"
@@ -48,6 +49,7 @@
4849
"eslint-config-next": "13.0.0",
4950
"eslint-config-prettier": "9.1.0",
5051
"eslint-plugin-testing-library": "^6.2.0",
52+
"husky": "^9.0.11",
5153
"jest": "^29.7.0",
5254
"jest-environment-jsdom": "^29.7.0",
5355
"prettier": "3.2.5",

0 commit comments

Comments
 (0)