Skip to content

Commit

Permalink
chore: use lefthook
Browse files Browse the repository at this point in the history
  • Loading branch information
toiroakr committed Jan 8, 2025
1 parent 3000b49 commit 5771c43
Show file tree
Hide file tree
Showing 4 changed files with 330 additions and 670 deletions.
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

23 changes: 23 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# EXAMPLE USAGE:
#
# Refer for explanation to following link:
# https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md
#
# pre-push:
# commands:
# packages-audit:
# tags: frontend security
# run: yarn audit
# gems-audit:
# tags: backend security
# run: bundle audit
#
rc: ~/.lefthookrc
pre-commit:
commands:
check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: git stash -k && npx @biomejs/biome check --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {staged_files} && git stash pop
test:
glob: "*.{ts,mts,tsx}"
run: npm test -- --run
Loading

0 comments on commit 5771c43

Please sign in to comment.