Skip to content

Commit 6d1854e

Browse files
authored
refactor: not installing plugins for husky npx (#394)
* refactor: not installing plugins for husky npx * Update commit-msg * fix: corrected the installation prevention parameters position * refactor: adapted from examples https://github.com/typicode/husky/blob/main/.husky/commit-msg * refactor: adapted from examples https://github.com/typicode/husky/blob/main/.husky/commit-msg
1 parent fb904f1 commit 6d1854e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.husky/commit-msg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#!/bin/sh
1+
#!/usr/bin/env sh
22
# shellcheck disable=SC1091
33
# shellcheck source=./_/husky.sh
4-
. "$(dirname "$0")/_/husky.sh"
4+
. "$(dirname -- "$0")/_/husky.sh"
55

6-
npx --yes commitlint --edit "$1"
6+
npx --no -- commitlint --edit "$1"

.husky/pre-commit

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#!/bin/sh
1+
#!/usr/bin/env sh
22
# shellcheck disable=SC1091
33
# shellcheck source=./_/husky.sh
4-
. "$(dirname "$0")/_/husky.sh"
4+
. "$(dirname -- "$0")/_/husky.sh"
55

66
echo "### validate branch name ###"
77
npx validate-branch-name
88
echo "### lint staged files ###"
9-
npx lint-staged
9+
npx --no -- lint-staged
1010
echo "### check for commit mail ###"
1111
node ./scripts/check-commit-mail.mjs

0 commit comments

Comments
 (0)