Skip to content

Commit b8cb0d2

Browse files
committed
Add git hook format
1 parent 86f8d87 commit b8cb0d2

File tree

2 files changed

+161
-1
lines changed

2 files changed

+161
-1
lines changed

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828
"typescript": "^5.3.3",
2929
"unocss": "^0.61.0",
3030
"vue-tsc": "^2.0.6",
31-
"wxt": "^0.18.0"
31+
"wxt": "^0.18.0",
32+
"simple-git-hooks": "^2.11.1",
33+
"lint-staged": "^15.2.8"
34+
},
35+
"simple-git-hooks": {
36+
"pre-commit": "pnpm lint-staged"
37+
},
38+
"lint-staged": {
39+
"*.{js,jsx,ts,tsx,md,html,css,vue}": "prettier --write --config .prettierrc"
3240
}
3341
}

0 commit comments

Comments
 (0)