Skip to content

Commit 3a20768

Browse files
committed
chore: replace lefthook with git-hooks
1 parent 83a4fe6 commit 3a20768

File tree

11 files changed

+56
-139
lines changed

11 files changed

+56
-139
lines changed

.pkgs/configs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@stylistic/eslint-plugin": "^5.3.1",
2424
"eslint-plugin-de-morgan": "^1.3.1",
2525
"eslint-plugin-function": "^0.0.29",
26-
"eslint-plugin-jsdoc": "^58.1.1",
26+
"eslint-plugin-jsdoc": "^59.0.1",
2727
"eslint-plugin-perfectionist": "^4.15.0",
2828
"eslint-plugin-regexp": "^2.10.0",
2929
"eslint-plugin-unicorn": "^61.0.2",

.pkgs/eslint-plugin-local/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@typescript-eslint/types": "^8.44.0",
3434
"@typescript-eslint/utils": "^8.44.0",
3535
"eslint-plugin-de-morgan": "^1.3.1",
36-
"eslint-plugin-jsdoc": "^58.1.1",
36+
"eslint-plugin-jsdoc": "^59.0.1",
3737
"eslint-plugin-perfectionist": "^4.15.0",
3838
"eslint-plugin-regexp": "^2.10.0",
3939
"eslint-plugin-unicorn": "^61.0.2",

git-hooks.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import type { GitHooksConfig } from "bun-git-hooks";
2+
3+
const config: GitHooksConfig = {
4+
"post-merge": "pnpm tsx ./scripts/verify-lockfile.ts",
5+
"pre-commit": "pnpm run format:check && pnpm run lint",
6+
};
7+
8+
export default config;

logs/git-hooks-2025-09-18.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[2025-09-18T16:38:09.619Z] local.SUCCESS: Successfully set all git hooks

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"lint:publish": "pnpm m run lint:publish",
4444
"lint:ts": "pnpm m run lint:ts",
4545
"lint:website": "pnpm -F \"./apps/website\" run lint",
46-
"prepare": "lefthook install && pnpm run build",
46+
"prepare": "git-hooks && pnpm run build",
4747
"sort:package-json": "pnpm m exec sort-package-json -q package.json && dprint fmt",
4848
"test": "vitest run --logHeapUsage",
4949
"update:all": "pnpm run update:version && pnpm run update:readme && pnpm run update:website",
@@ -69,6 +69,7 @@
6969
"@typescript-eslint/rule-tester": "^8.44.0",
7070
"@typescript-eslint/types": "^8.44.0",
7171
"ansis": "^4.1.0",
72+
"bun-git-hooks": "^0.2.19",
7273
"dedent": "^1.7.0",
7374
"dprint": "^0.50.2",
7475
"effect": "^3.17.13",
@@ -77,9 +78,8 @@
7778
"eslint-plugin-fast-import": "^1.4.3",
7879
"eslint-plugin-vitest": "^0.5.4",
7980
"jiti": "^2.5.1",
80-
"lefthook": "^1.13.1",
8181
"mdxlint": "^1.0.0",
82-
"publint": "^0.3.12",
82+
"publint": "^0.3.13",
8383
"react": "^19.1.1",
8484
"react-dom": "^19.1.1",
8585
"remark-frontmatter": "5.0.0",
@@ -107,7 +107,6 @@
107107
"core-js",
108108
"dprint",
109109
"esbuild",
110-
"lefthook",
111110
"sharp"
112111
],
113112
"overrides": {

0 commit comments

Comments
 (0)