Skip to content

Commit 56ea0a7

Browse files
committed
chore: migrate husky
1 parent dafd73e commit 56ea0a7

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/renovate.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"github>ctison/config//renovate/renovate",
5-
":preserveSemverRanges"
6-
],
7-
"repositories": ["ctison/graphql-codegen-golang"],
8-
"pinDigests": false,
9-
"automerge": true
3+
"extends": ["github>ctison/config//renovate/renovate"],
4+
"repositories": ["ctison/graphql-codegen-golang"]
105
}

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
exec pnpm lint-staged

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"gen": "graphql-codegen",
77
"gen:rickandmorty": "pnpm run gen -p rickandmorty",
88
"lint": "turbo run lint",
9+
"prepare": "husky install",
910
"test": "turbo run test",
1011
"test:rickandmorty": "go test -v ./examples/rickandmorty"
1112
},

0 commit comments

Comments
 (0)