Skip to content

Commit af2b139

Browse files
committed
chore: add bun-git-hooks with gitlint
1 parent 1d3be9c commit af2b139

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

package.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,26 @@
4545
"devDependencies": {
4646
"@stacksjs/docs": "^0.70.23",
4747
"@stacksjs/eslint-config": "^4.10.2-beta.3",
48+
"@stacksjs/gitlint": "^0.1.5",
4849
"@types/bun": "^1.2.12",
4950
"bumpp": "^10.1.0",
51+
"bun-git-hooks": "^0.2.16",
5052
"changelogen": "^0.6.1",
5153
"typescript": "^5.8.3",
5254
"unocss": "^66.1.1"
5355
},
5456
"overrides": {
5557
"unconfig": "0.3.10"
5658
},
57-
"simple-git-hooks": {
58-
"pre-commit": "bunx lint-staged"
59-
},
60-
"lint-staged": {
61-
"*.{js,ts}": "bunx eslint . --fix"
62-
},
6359
"workspaces": [
6460
"packages/*"
65-
]
61+
],
62+
"git-hooks": {
63+
"pre-commit": {
64+
"staged-lint": {
65+
"*.{js,ts,json,yaml,yml,md}": "bunx --bun eslint . --fix"
66+
}
67+
},
68+
"commit-msg": "bunx gitlint .git/COMMIT_EDITMSG"
69+
}
6670
}

0 commit comments

Comments
 (0)