Skip to content

Commit

Permalink
Replace husky install with husky, update husky hook file (#41)
Browse files Browse the repository at this point in the history
* 🔧 chore: Update package.json, replace husky install with husky

* 🔧 chore: Update husky hooks config

---------

Co-authored-by: CanisMinor <[email protected]>
  • Loading branch information
iaosee and canisminor1990 authored Nov 22, 2024
1 parent 06a1124 commit 8bc43f2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
2 changes: 0 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install lint-staged
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"lint": "eslint \"{src,api,lib}/**/*.{js,jsx,ts,tsx}\" --fix",
"lint:md": "remark . --quiet --frail --output",
"lint:style": "stylelint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
"prepare": "husky install && npm run setup",
"prepare": "husky && npm run setup",
"prepublishOnly": "npm run build",
"prettier": "prettier -c --write \"**/**\"",
"release": "semantic-release",
Expand Down

0 comments on commit 8bc43f2

Please sign in to comment.