Skip to content

Commit

Permalink
chore: Update husky version
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldowseza committed Feb 27, 2024
1 parent 1ddc4f4 commit e7087ab
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 27 deletions.
6 changes: 1 addition & 5 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"


# Section for git-secrets

if ! command -v git-secrets &> /dev/null
if ! command -v git-secrets > /dev/null 2>&1
then
echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets"
exit 1
Expand Down
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install lint-staged



# Section for git-secrets

if ! command -v git-secrets &> /dev/null
if ! command -v git-secrets > /dev/null 2>&1
then
echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets"
exit 1
Expand Down
8 changes: 1 addition & 7 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"


# Section for git-secrets

if ! command -v git-secrets &> /dev/null
if ! command -v git-secrets > /dev/null 2>&1
then
echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets"
exit 1
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"build": "tsc -p ./tsconfig.json && tsc -p ./tsconfig.cjs.json",
"generate-deep-package": "node ./scripts/generate-deep-package.js",
"prepublishOnly": "npm run clean && npm run build && npm run generate-deep-package",
"prepare": "husky install"
"prepare": "husky"
},
"type": "module",
"main": "./dist/cjs/index.js",
Expand Down Expand Up @@ -55,7 +55,7 @@
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-unicorn": "^11.0.2",
"husky": "^7.0.4",
"husky": "^9.0.0",
"jest": "^26.6.3",
"jest-ts-webcompat-resolver": "^1.0.0",
"lint-staged": "^13.2.1",
Expand Down

0 comments on commit e7087ab

Please sign in to comment.