forked from finos/git-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update husky to be invoked by yarn
- Loading branch information
1 parent
b76f0a1
commit 7fe7f00
Showing
3 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no -- commitlint --edit ${1} && npm run lint | ||
yarn commitlint --edit "$HUSKY_GIT_PARAMS" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,11 @@ | |
"format": "prettier --write src/**/*.{js,jsx,ts,tsx,css,md,json,scss} test/**/*.{js,jsx,ts,tsx,json} --config ./.prettierrc", | ||
"g:tsc": "cd $INIT_CWD && tsc --build" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"commit-msg": "yarn commitlint -E HUSKY_GIT_PARAMS" | ||
} | ||
}, | ||
"private": true, | ||
"packageManager": "[email protected]", | ||
"bin": { | ||
|
@@ -97,7 +102,7 @@ | |
"eslint-plugin-prettier": "^5.0.0", | ||
"eslint-plugin-react": "^7.21.5", | ||
"eslint-plugin-standard": "^5.0.0", | ||
"husky": "^9.0.10", | ||
"husky": "^9.0.11", | ||
"jsdom": "^24.0.0", | ||
"jsdom-global": "^3.0.2", | ||
"mocha": "^10.3.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters