Skip to content

Commit

Permalink
chore: set up commit linting using git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
kantord committed Feb 19, 2022
1 parent 0ea2875 commit e33df83
Show file tree
Hide file tree
Showing 4 changed files with 427 additions and 20 deletions.
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"
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
}
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@
"description": "Markdown presentations using your webcam",
"license": "MIT",
"devDependencies": {
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"husky": "^7.0.4",
"semantic-release": "^19.0.2"
},
"scripts": {
"prepare": "husky install"
}
}
Loading

0 comments on commit e33df83

Please sign in to comment.