Skip to content

Commit

Permalink
chore: add commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
iamyoki committed Dec 16, 2021
1 parent 842b9b2 commit 67837fb
Show file tree
Hide file tree
Showing 4 changed files with 718 additions and 15 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"

yarn commitlint --edit $1
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
"react-dom": "^16.8.0 || ^17.0.0"
},
"devDependencies": {
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"@types/react": "^17.0.37",
"eslint": "^8.4.1",
"eslint-config-prettier": "^8.3.0",
Expand Down
Loading

0 comments on commit 67837fb

Please sign in to comment.