Skip to content

Commit

Permalink
chore(pre-commit): enable commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysparry committed Dec 14, 2024
1 parent f4d3f4e commit 182259c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .commitlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: v0.9.0
formatter: default
rules:
- header-min-length
- header-max-length
- body-max-line-length
- footer-max-line-length
- type-enum
severity:
default: error
settings:
body-max-line-length:
argument: 72
footer-max-line-length:
argument: 72
header-min-length:
argument: 10
header-max-length:
argument: 50
type-enum:
argument:
- feat
- fix
- docs
- style
- refactor
- perf
- test
- build
- ci
- chore
- revert
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ repos:
- id: trailing-whitespace
- repo: local
hooks:
- id: commitlint
name: Lint commit message
entry: commitlint lint --message
language: system
stages:
- commit-msg
- id: csharpier
name: Format C#
entry: dotnet tool run dotnet-csharpier
Expand Down

0 comments on commit 182259c

Please sign in to comment.