Skip to content

Commit 124a939

Browse files
authored
Add pre-commit hook (#135)
1 parent 0c198cc commit 124a939

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm pretty-quick --staged

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"format": "prettier --write .",
1515
"generate": "nx g @tools/nx:package",
1616
"lint": "eslint .",
17+
"prepare": "husky",
1718
"release": "tools/scripts/release",
1819
"revise-docs": "tools/scripts/revise-docs",
1920
"test": "tools/scripts/run-many test",
@@ -55,12 +56,14 @@
5556
"eslint-plugin-import": "^2.29.1",
5657
"eslint-plugin-playwright": "^1.6.0",
5758
"globals": "^15.0.0",
59+
"husky": "^9.0.11",
5860
"jest": "^29.4.1",
5961
"jest-environment-jsdom": "^29.4.1",
6062
"markdown-it-footnote": "^4.0.0",
6163
"nx": "19.2.2",
6264
"prettier": "^3.2.5",
6365
"prettier-plugin-packagejson": "^2.5.0",
66+
"pretty-quick": "^4.0.0",
6467
"revise-static-content": "~0.1.1",
6568
"ts-jest": "^29.1.0",
6669
"ts-node": "10.9.2",

pnpm-lock.yaml

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)