Skip to content

Commit

Permalink
fix: add lefthook and precommit check
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianmolinab committed Jun 12, 2024
1 parent 06b08c2 commit 524582a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pre-commit:
commands:
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} && git update-index --again
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"@vitest/ui": "^0.34.6",
"autoprefixer": "^10.4.16",
"cypress": "^13.6.0",
"lefthook": "^1.6.15",
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vitest": "^0.34.6"
Expand Down

0 comments on commit 524582a

Please sign in to comment.