Skip to content

Commit

Permalink
Improve pre commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
vpmedia committed Dec 25, 2023
1 parent 8072431 commit 83e3a78
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@
pre-commit:
parallel: false
commands:
lint:
lint_yaml:
glob: "*.{yml,yaml}"
run: |
set -e
yq 'true' {staged_files} > /dev/null
lint_json:
glob: "*.{json}"
run: |
set -e
jq empty {staged_files}
lint_js:
glob: "*.{js,ts,jsx,tsx}"
run: |
set -e
Expand Down

0 comments on commit 83e3a78

Please sign in to comment.