Skip to content

Commit

Permalink
feat(hooks): fix Lefthook configuration to trigger pre-commit hooks (#25
Browse files Browse the repository at this point in the history
)
  • Loading branch information
hamo225 authored Sep 16, 2024
1 parent 8d4cba9 commit 9d62c6e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@ pre-commit:
(echo "Verify the content and fix it with: talisman --githook pre-commit --interactive"; exit 1)
check-format-frontend:
root: frontend/
run: npm run --silent prettier:fix {staged_files} && git add {staged_files}

lint-frontend:
root: frontend/
glob: "*.{ts,js,vue}"
run: npm run --silent eslint:fix {staged_files} && git add {staged_files}

typecheck-frontend:
root: frontend/
glob: "*.{ts,vue}"
run: npm run --silent typecheck && git add {staged_files}

Expand Down

0 comments on commit 9d62c6e

Please sign in to comment.