Skip to content

Commit 73e0341

Browse files
authored
Merge pull request #3327 from obsidian-tasks-group/fix-pre-commit-checks
chore: Run pre-commit checks on .svelte and json test data files
2 parents 428eff5 + 698b9d6 commit 73e0341

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lefthook.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,18 @@ pre-commit:
1616
lint:
1717
glob: '*.ts'
1818
run: yarn lint "{staged_files}" && git add "{staged_files}"
19+
lint-svelte:
20+
glob: '*.svelte'
21+
run: yarn lint && git add "{staged_files}"
1922
lint-markdown:
2023
glob: '*.md'
2124
run: yarn lint:markdown && git add "{staged_files}"
2225
test:
2326
glob: '*.ts'
2427
run: yarn test "{staged_files}" --findRelatedTests --passWithNoTests
28+
test-json:
29+
glob: 'tests/Obsidian/__test_data__/*.json'
30+
run: yarn test
31+
test-svelte:
32+
glob: '*.svelte'
33+
run: yarn test

0 commit comments

Comments
 (0)