Skip to content

Commit

Permalink
chore: 安装并配置husky & commitlint
Browse files Browse the repository at this point in the history
补提交前一次提交漏的文件.
  • Loading branch information
jay committed Jan 5, 2022
1 parent 273378d commit 83adba4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
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 run lint
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'],
};

0 comments on commit 83adba4

Please sign in to comment.