Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
chore(projects): add simple-git-hooks, lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Dec 7, 2023
1 parent 207773b commit ccb5172
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@
"commit": "soy git-commit",
"cleanup": "soy cleanup",
"update-pkg": "soy ncu",
"typecheck": "tsc --noEmit --skipLibCheck",
"publish-pkg": "pnpm -r publish --access public",
"release": "soy release && pnpm publish-pkg",
"prepare": "pnpm build"
"prepare": "pnpm build && simple-git-hooks"
},
"dependencies": {
"@antfu/install-pkg": "0.3.1",
Expand Down Expand Up @@ -74,7 +75,16 @@
"@types/node": "20.10.3",
"@types/prompts": "2.4.9",
"eslint": "8.55.0",
"lint-staged": "15.2.0",
"simple-git-hooks": "2.9.0",
"typescript": "5.3.2",
"unbuild": "2.0.0"
},
"simple-git-hooks": {
"commit-msg": "pnpm soy git-commit-verify",
"pre-commit": "pnpm typecheck && pnpm lint-staged"
},
"lint-staged": {
"*": "eslint --fix"
}
}

0 comments on commit ccb5172

Please sign in to comment.