Skip to content

Commit

Permalink
fix: incorrect behavior of git hooks (#14)
Browse files Browse the repository at this point in the history
* revert: husky and lint-staged

* feat: add git hooks

* fix: missing husky in dev dependencies
  • Loading branch information
detarkende authored Aug 20, 2024
1 parent 309ca72 commit 27ac4e9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 708 deletions.
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

5 changes: 3 additions & 2 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
npm run format
npm run typecheck
npm run lint
3 changes: 2 additions & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run check-formatting
npm run lint
npm run test
npm run build
Loading

0 comments on commit 27ac4e9

Please sign in to comment.