Skip to content

Commit

Permalink
replace husky with lefthook
Browse files Browse the repository at this point in the history
  • Loading branch information
vorant94 committed Jul 23, 2024
1 parent 6a26132 commit f739074
Show file tree
Hide file tree
Showing 6 changed files with 138 additions and 21 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
**/.DS_Store

**/data

.husky/_/*
1 change: 0 additions & 1 deletion .husky/pre-commit

This file was deleted.

3 changes: 2 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"**/dist",
"**/.env",
"**/.DS_Store",
"**/data"
"**/data",
".husky/_/*"
]
},
"overrides": [
Expand Down
7 changes: 7 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pre-commit:
parallel: true
commands:
lint:
run: npm run lint:check
format:
run: npm run format:check
142 changes: 125 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"workspaces": ["packages/*"],
"scripts": {
"prepare": "husky",
"prepare": "lefthook install",
"format:check": "biome format .",
"format:fix": "biome format --write .",
"lint:check": "biome lint .",
Expand All @@ -13,7 +13,7 @@
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"husky": "^9.0.11"
"lefthook": "^1.7.5"
},
"engines": {
"node": ">=20"
Expand Down

0 comments on commit f739074

Please sign in to comment.