Skip to content

Commit 1f8d3e0

Browse files
committed
fix: fix and upgrade Husky pre-commit and lint checks
1 parent 22c47ec commit 1f8d3e0

File tree

3 files changed

+3
-16
lines changed

3 files changed

+3
-16
lines changed

.husky/commit-msg

Lines changed: 0 additions & 3 deletions
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

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,2 @@
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-
# data-edge
10-
pushd packages/data-edge
11-
npx --no-install lint-staged
12-
popd
1+
(cd packages/contracts && npx --no-install lint-staged)
2+
(cd packages/data-edge && npx --no-install lint-staged)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
"@changesets/cli": "^2.27.1",
2727
"@commitlint/cli": "^18.4.3",
2828
"@commitlint/config-conventional": "^18.4.3",
29-
"husky": "^8.0.3"
29+
"husky": "^9.1.7"
3030
}
3131
}

0 commit comments

Comments
 (0)