feat: 配置 git pre-commit hook — 提交前自动运行 Biome 检查
使用 .githooks/ 目录 + core.hooksPath 方案,零依赖。 prepare script 确保 bun install 后自动激活。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
074ea844dc
commit
4319afc08f
3 files changed
+25
-2
No files matched your search
+2
-1
@@ -15,7 +15,8 @@
|
||||
"prepublishOnly": "bun run build",
|
||||
"lint": "biome check src/",
|
||||
"lint:fix": "biome check --fix src/",
|
||||
"format": "biome format --write src/"
|
||||
"format": "biome format --write src/",
|
||||
"prepare": "git config core.hooksPath .githooks"
|
||||
},
|
||||
"dependencies": {
|
||||
"@alcalzone/ansi-tokenize": "^0.3.0",
|
||||
|
||||
Reference in new issue
Block a user