Skip to content

Commit 3434360

Browse files
authored
chore: enable skip_empty for lefthook oxfmt command (#276)
oxfmt internally ignores certain files like pnpm-lock.yaml, which causes lefthook to error when only lockfile changes are staged (since oxfmt produces no output). Enabling skip_empty prevents this error.
1 parent f91636f commit 3434360

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lefthook.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ pre-commit:
55
glob: "*.{ts,tsx,js,jsx,mjs,cjs,json,jsonc,md,mdx,yaml,yml,css,html}"
66
run: pnpm exec oxfmt {staged_files}
77
stage_fixed: true
8+
skip_empty: true

0 commit comments

Comments
 (0)