mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-23 14:42:59 +03:00
feat(): add commitlint
This commit is contained in:
parent
f863c8f790
commit
3a00e83aa7
28
.commitlintrc.json
Normal file
28
.commitlintrc.json
Normal file
@ -0,0 +1,28 @@
|
||||
{
|
||||
"extends": ["@commitlint/config-angular"],
|
||||
"rules": {
|
||||
"subject-case": [
|
||||
2,
|
||||
"always",
|
||||
["sentence-case", "start-case", "pascal-case", "upper-case", "lower-case"]
|
||||
],
|
||||
"type-enum": [
|
||||
2,
|
||||
"always",
|
||||
[
|
||||
"build",
|
||||
"chore",
|
||||
"ci",
|
||||
"docs",
|
||||
"feat",
|
||||
"fix",
|
||||
"perf",
|
||||
"refactor",
|
||||
"revert",
|
||||
"style",
|
||||
"test",
|
||||
"sample"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
lib
|
||||
sample
|
||||
website
|
||||
.commitlintrc.json
|
||||
.eslintrc.js
|
||||
.prettierrc
|
||||
package-lock.json
|
||||
|
2572
package-lock.json
generated
2572
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -47,6 +47,8 @@
|
||||
"telegraf": "3.38.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "11.0.0",
|
||||
"@commitlint/config-angular": "11.0.0",
|
||||
"@nestjs/common": "7.6.5",
|
||||
"@nestjs/core": "7.6.5",
|
||||
"@types/lodash": "4.14.167",
|
||||
@ -71,6 +73,7 @@
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"commit-msg": "commitlint -c .commitlintrc.json -E HUSKY_GIT_PARAMS",
|
||||
"pre-commit": "lint-staged"
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user