Skip to content

Commit

Permalink
chore(husky): upgraded config to match installed version
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Sep 29, 2021
1 parent 7b952c7 commit 922259d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

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

npm test
10 changes: 3 additions & 7 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"scripts": {
"lint:md": "globstar --node -- markdownlint **/*.md",
"test": "run-s lint:*",
"commitmsg": "commitlint -e",
"precommit": "npm test"
"prepare": "husky install"
},
"config": {
"commitizen": {
Expand Down

0 comments on commit 922259d

Please sign in to comment.