-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add commitlint configuration (#18)
- Loading branch information
1 parent
4ca8f93
commit 5ee6d7a
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
extends: | ||
- "@commitlint/config-conventional" | ||
|
||
rules: | ||
# lowercase on the "type". | ||
type-case: [1, "always", "lower-case"] | ||
|
||
# lowercase on the subject (the short description). | ||
subject-case: [1, "always", "lower-case"] | ||
|
||
# Disallow trailing period in the subject line. | ||
subject-full-stop: [2, "never", "."] | ||
|
||
# Limit the full header (type + subject) to 72 chars max. | ||
header-max-length: [2, "always", 72] | ||
|
||
# Require a blank line after the header. | ||
body-leading-blank: [2, "always"] | ||
|
||
# Limit body lines to 72 chars. | ||
body-max-line-length: [2, "always", 72] | ||
|
||
# Require a blank line before the footer (e.g., “Fixes: #123”). | ||
footer-leading-blank: [2, "always"] | ||
|
||
# Limit footer lines to 72 chars as well. | ||
footer-max-line-length: [2, "always", 72] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters