Skip to content

Commit

Permalink
change githooks dir to .lefthook
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-phan committed Jul 11, 2024
1 parent 9b45196 commit ee6fad2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
5 changes: 4 additions & 1 deletion lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ pre-commit:
check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: npx @biomejs/biome check --write --no-errors-on-unmatched --files-ignore-unknown=true {staged_files}
stage_fixed: true
stage_fixed: true

source_dir:
.lefthook/
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
"typecheck": "turbo typecheck --parallel",
"biome": "biome check --diagnostic-level=error",
"biome:fix": "biome check --write",
"postinstall": "lefthook install -f",
"changeset": "changeset",
"postinstall": "lefthook install"
"uninstall": "lefthook uninstall -f"
},
"devDependencies": {
"@biomejs/biome": "1.8.3",
Expand Down

0 comments on commit ee6fad2

Please sign in to comment.