Skip to content

Commit dfb3bc2

Browse files
committed
migrate to lefthook & optionalize git hooks
1 parent 0631baa commit dfb3bc2

File tree

6 files changed

+127
-278
lines changed

6 files changed

+127
-278
lines changed

.husky/pre-commit

-4
This file was deleted.

.husky/pre-push

-4
This file was deleted.

.lintstagedrc

-3
This file was deleted.

lefthook.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pre-commit:
2+
commands:
3+
check:
4+
glob: "*.{js,ts,cjs,mjs,cts,mts,jsx,tsx,json,jsonc}"
5+
run: yarn check --write --colors=off {staged_files}
6+
stage_fixed: true

package.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55
"packageManager": "[email protected]",
66
"scripts": {
77
"prepare": "panda codegen --clean",
8-
"postinstall": "husky install",
98
"dev": "vite",
109
"build": "vite build",
1110
"preview": "vite preview",
1211
"test": "vitest",
13-
"lint": "eslint src --report-unused-disable-directives",
14-
"format": "prettier src \"!src/router.ts\""
12+
"check": "biome check --no-errors-on-unmatched",
13+
"ci": "biome ci --no-errors-on-unmatched"
1514
},
1615
"dependencies": {
1716
"@fortawesome/fontawesome-svg-core": "^6.5.2",
@@ -57,8 +56,7 @@
5756
"@types/react": "^18.2.74",
5857
"@types/react-dom": "^18.2.24",
5958
"@vitejs/plugin-react": "^4.2.1",
60-
"husky": "^9.0.11",
61-
"lint-staged": "^15.2.2",
59+
"lefthook": "^1.7.16",
6260
"typescript": "^5.4.4",
6361
"vite": "^5.2.8",
6462
"vitest": "^1.4.0"

0 commit comments

Comments
 (0)