Skip to content

Commit 5ee6d7a

Browse files
authored
ci: add commitlint configuration (#18)
1 parent 4ca8f93 commit 5ee6d7a

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

.commitlintrc.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
extends:
2+
- "@commitlint/config-conventional"
3+
4+
rules:
5+
# lowercase on the "type".
6+
type-case: [1, "always", "lower-case"]
7+
8+
# lowercase on the subject (the short description).
9+
subject-case: [1, "always", "lower-case"]
10+
11+
# Disallow trailing period in the subject line.
12+
subject-full-stop: [2, "never", "."]
13+
14+
# Limit the full header (type + subject) to 72 chars max.
15+
header-max-length: [2, "always", 72]
16+
17+
# Require a blank line after the header.
18+
body-leading-blank: [2, "always"]
19+
20+
# Limit body lines to 72 chars.
21+
body-max-line-length: [2, "always", 72]
22+
23+
# Require a blank line before the footer (e.g., “Fixes: #123”).
24+
footer-leading-blank: [2, "always"]
25+
26+
# Limit footer lines to 72 chars as well.
27+
footer-max-line-length: [2, "always", 72]

.gitignore

+9-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,12 @@ lcov**.info
1515
metrics.json
1616

1717
# lychee
18-
.lycheecache
18+
.lycheecache
19+
20+
# npm
21+
**/node_modules
22+
package-lock.json
23+
package.json
24+
25+
// husky
26+
.husky

0 commit comments

Comments
 (0)