Skip to content

Commit

Permalink
build: add commitlint pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
sblask committed Mar 2, 2024
1 parent 2731a41 commit fd45840
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .commitlintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
extends:
- "@commitlint/config-angular"
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,12 @@ repos:
hooks:

- id: actionlint

- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.13.0
hooks:
- id: commitlint
stages:
- commit-msg
additional_dependencies:
- "@commitlint/config-angular"
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"author": "Sebastian Blask",
"devDependencies": {
"@commitlint/cli": "^19.0.3",
"@commitlint/config-angular": "^19.0.3",
"@eslint/js": "^8.54.0",
"@stylistic/eslint-plugin-js": "^1.4.0",
"eslint": "^8.54.0",
Expand Down

0 comments on commit fd45840

Please sign in to comment.