Skip to content

Commit

Permalink
ci: add commitlint configuration (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
drink7036290 authored Dec 27, 2024
1 parent 4ca8f93 commit 5ee6d7a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .commitlintrc.yml
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]
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,12 @@ lcov**.info
metrics.json

# lychee
.lycheecache
.lycheecache

# npm
**/node_modules
package-lock.json
package.json

// husky
.husky

0 comments on commit 5ee6d7a

Please sign in to comment.