feat: add commitlint

This commit is contained in:
hophacker 2022-03-13 00:41:48 +08:00
parent 845ad44b2d
commit 44b8c7ad88
5 changed files with 1276 additions and 0 deletions

1
.gitignore vendored
View File

@ -18,3 +18,4 @@ tags
.idea
git/gitconfig
.DS_Store
node_modules

4
.husky/commit-msg Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn commitlint --edit $1

1
commitlint.config.js Normal file
View File

@ -0,0 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}

7
package.json Normal file
View File

@ -0,0 +1,7 @@
{
"devDependencies": {
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"husky": "^7.0.4"
}
}

1263
yarn.lock Normal file

File diff suppressed because it is too large Load Diff