Skip to content

Commit ee3ec2d

Browse files
committed
fix(git): fix commit hook issues
1 parent da2385e commit ee3ec2d

File tree

4 files changed

+192
-36
lines changed

4 files changed

+192
-36
lines changed

.husky/commit-msg

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npx --no-install commitlint --edit ""

.husky/pre-commit

+4-22
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
4-
# contracts
5-
pushd packages/contracts
6-
npx --no-install lint-staged
7-
popd
8-
9-
# subgraph service
10-
pushd packages/subgraph-service
11-
npx --no-install lint-staged
12-
popd
13-
14-
# data-edge
15-
pushd packages/data-edge
16-
npx --no-install lint-staged
17-
popd
18-
19-
# graph horizon
20-
pushd packages/horizon
21-
npx --no-install lint-staged
22-
popd
1+
(cd packages/contracts && npx --no-install lint-staged)
2+
(cd packages/subgraph-service && npx --no-install lint-staged)
3+
(cd packages/data-edge && npx --no-install lint-staged)
4+
(cd packages/horizon && npx --no-install lint-staged)

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"@changesets/cli": "^2.27.1",
3131
"@commitlint/cli": "^18.4.3",
3232
"@commitlint/config-conventional": "^18.4.3",
33-
"husky": "^8.0.3"
33+
"husky": "^9.1.7",
34+
"lint-staged": "^15.5.0"
3435
}
3536
}

0 commit comments

Comments
 (0)