Skip to content

Commit

Permalink
fix: install husky and enable commitlint for commit-msg (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
junglebarry authored Oct 26, 2021
1 parent a91b70e commit 5fe3222
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
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
6 changes: 6 additions & 0 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lint": "npm run lint:prettier && npm run lint:eslint",
"format:prettier": "prettier --write .",
"format": "npm run format:prettier",
"prepare": "npm run build"
"prepare": "husky install && npm run build"
},
"devDependencies": {
"@aws-cdk/assert": "^1.128.0",
Expand All @@ -29,6 +29,7 @@
"esbuild": "^0.13.8",
"eslint": "^7.30.0",
"eslint-config-prettier": "^8.3.0",
"husky": "^7.0.4",
"jest": "^26.4.2",
"prettier": "^2.3.2",
"semantic-release": "^17.4.4",
Expand Down

0 comments on commit 5fe3222

Please sign in to comment.