Skip to content

Commit

Permalink
build: add commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
XQY279 committed Jul 12, 2021
1 parent 6064b7e commit 16c2068
Show file tree
Hide file tree
Showing 4 changed files with 577 additions and 17 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"
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 @@ -26,6 +26,8 @@
"shelljs": "^0.8.4"
},
"devDependencies": {
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"eslint": "^7.30.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.3.0",
Expand Down
Loading

0 comments on commit 16c2068

Please sign in to comment.