feat: add commitlint
This commit is contained in:
parent
845ad44b2d
commit
44b8c7ad88
1
.gitignore
vendored
1
.gitignore
vendored
@ -18,3 +18,4 @@ tags
|
||||
.idea
|
||||
git/gitconfig
|
||||
.DS_Store
|
||||
node_modules
|
||||
|
4
.husky/commit-msg
Executable file
4
.husky/commit-msg
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
yarn commitlint --edit $1
|
1
commitlint.config.js
Normal file
1
commitlint.config.js
Normal file
@ -0,0 +1 @@
|
||||
module.exports = {extends: ['@commitlint/config-conventional']}
|
7
package.json
Normal file
7
package.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^16.2.1",
|
||||
"@commitlint/config-conventional": "^16.2.1",
|
||||
"husky": "^7.0.4"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user