Skip to content

Commit

Permalink
Merge pull request #35 from taga3s/chore/introduce-lefthook
Browse files Browse the repository at this point in the history
Add lefthook
  • Loading branch information
taga3s authored Nov 3, 2024
2 parents 84ce6c5 + 7722b20 commit 96c776f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions lefthook.yaml
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
#
pre-commit:
parallel: true
commands:
format:
glob: "*.{js,ts,jsx,tsx}"
run: pnpm format
lint:
glob: "*.{js,ts,jsx,tsx}"
run: pnpm lint

0 comments on commit 96c776f

Please sign in to comment.