Skip to content

Commit

Permalink
chore: Make lefthook lint and test *.svelte files before commit
Browse files Browse the repository at this point in the history
  • Loading branch information
claremacrae committed Feb 13, 2025
1 parent d6a62d7 commit 698b9d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ pre-commit:
lint:
glob: '*.ts'
run: yarn lint "{staged_files}" && git add "{staged_files}"
lint-svelte:
glob: '*.svelte'
run: yarn lint && git add "{staged_files}"
lint-markdown:
glob: '*.md'
run: yarn lint:markdown && git add "{staged_files}"
Expand All @@ -25,3 +28,6 @@ pre-commit:
test-json:
glob: 'tests/Obsidian/__test_data__/*.json'
run: yarn test
test-svelte:
glob: '*.svelte'
run: yarn test

0 comments on commit 698b9d6

Please sign in to comment.