Skip to content

Commit 72c2f72

Browse files
committed
ci: add commitlint
1 parent 634c4e0 commit 72c2f72

4 files changed

Lines changed: 593 additions & 19 deletions

File tree

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit

commitlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ['@commitlint/config-angular'] }

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
"@angular/cli": "^17.1.0",
4747
"@angular/compiler-cli": "^17.1.0",
4848
"@angular/language-service": "^17.1.0",
49+
"@commitlint/cli": "^18.5.0",
50+
"@commitlint/config-conventional": "^18.5.0",
51+
"@commitlint/config-angular": "^18.5.0",
4952
"@types/marked": "^5.0.1",
5053
"@types/node": "20.5.4",
5154
"codelyzer": "^6.0.2",

0 commit comments

Comments
 (0)