Skip to content

Commit

Permalink
feat: add git hook for lint the codes before commit (#85)
Browse files Browse the repository at this point in the history
* feat: add git hook for lint the codes before commit

* fix: fix the pre-commit script
  • Loading branch information
0x002500 committed Aug 16, 2024
1 parent fa03b4c commit 70a0f35
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm exec lint-staged
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"api:generate": "pnpm typedoc",
"dep": "taze -r",
"dep:write": "taze -rw",
"prepare": "simple-git-hooks"
"prepare": "husky && husky install"
},
"dependencies": {
"tsup": "^8.1.0"
Expand All @@ -33,6 +33,7 @@
"@changesets/cli": "^2.27.1",
"@types/node": "^20.12.9",
"eslint": "^9.2.0",
"husky": "^8.0.0",
"lint-staged": "^15.2.2",
"pnpm": "^9.1.0",
"rimraf": "^3.0.2",
Expand Down
29 changes: 29 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 70a0f35

Please sign in to comment.