Skip to content

Commit

Permalink
fix: run commitlint without bash
Browse files Browse the repository at this point in the history
  • Loading branch information
DASPRiD committed Mar 6, 2024
1 parent 7f0a00a commit 2b6ec74
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
1 change: 0 additions & 1 deletion .lefthook/commit-msg/commitlint.sh

This file was deleted.

8 changes: 4 additions & 4 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ pre-commit:
commands:
check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: npx biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true {staged_files} && git update-index --again
run: pnpm exec biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true {staged_files} && git update-index --again

commit-msg:
scripts:
"commitlint.sh":
runner: bash
commands:
lint-commit-msg:
run: pnpm exec commitlint --edit
1 change: 0 additions & 1 deletion skeleton/base/.lefthook/commit-msg/commitlint.sh

This file was deleted.

8 changes: 4 additions & 4 deletions skeleton/base/lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ pre-commit:
commands:
check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: pnpm exec biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true {staged_files} && git update-index --again
run: pnpm exec biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true {staged_files} && git update-index -->

commit-msg:
scripts:
"commitlint.sh":
runner: bash
commands:
lint-commit-msg:
run: pnpm exec commitlint --edit

0 comments on commit 2b6ec74

Please sign in to comment.