Skip to content

Commit 9412d86

Browse files
committed
feat(husky): update git hooks
Signed-off-by: rajput-hemant <[email protected]>
1 parent 4f0cd75 commit 9412d86

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.husky/commit-msg

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
32

4-
npx --no -- commitlint --edit ${1}
3+
bunx --no -- commitlint --edit ${1}

.husky/pre-commit

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
32

4-
npx lint-staged
3+
bunx lint-staged
54

src/lib/config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export const config = {
66
},
77

88
rateLimit: {
9-
enable: process.env.ENABLE_RATE_LIMIT === "true" ?? false,
10-
limitedReqCount: +(process.env.LIMITED_REQ_COUNT ?? 5),
9+
enable: process.env.ENABLE_RATE_LIMIT === "true" || false,
10+
limitedReqCount: +(process.env.LIMITED_REQ_COUNT || 5),
1111
},
1212

1313
endpoint: {

0 commit comments

Comments
 (0)