chore(commitlint): added configuration commitlint

This commit is contained in:
Tony133
2020-12-09 23:28:09 +01:00
parent 1490ed6c20
commit b2fdbcd00d
3 changed files with 1029 additions and 2 deletions

28
.commitlintrc.json Normal file
View 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"
]
]
}
}

996
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -47,6 +47,8 @@
"@angular/cli": "10.2.0",
"@angular/compiler-cli": "10.2.3",
"@angular/language-service": "10.2.3",
"@commitlint/cli": "11.0.0",
"@commitlint/config-angular": "11.0.0",
"@types/jasmine": "3.6.2",
"@types/jasminewd2": "2.0.8",
"@types/lodash": "4.14.164",
@@ -75,5 +77,10 @@
"typescript": "3.9.7",
"uuid": "8.3.2",
"yargs": "16.1.1"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -c .commitlintrc.json -E HUSKY_GIT_PARAMS"
}
}
}