Skip to content

Commit 641608c

Browse files
committed
chore: Add commitlint to repo
TODO: Check if this works without using .js or node then dotnet in the repository
1 parent b0d8a8c commit 641608c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.commitlint.config.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"$schema": "https://www.schemastore.org/commitlintrc.json",
3+
"extends": ["@commitlint/config-conventional"],
4+
"rules": {
5+
"body-leading-blank": [1, "always"],
6+
"body-max-line-length": [2, "always", 100],
7+
"footer-leading-blank": [1, "always"],
8+
"footer-max-line-length": [2, "always", 100],
9+
"header-max-length": [2, "always", 50],
10+
"scope-case": [2, "always", "lower-case"],
11+
"subject-case": [2, "never", ["sentence-case", "start-case", "pascal-case", "upper-case"]],
12+
"subject-empty": [2, "never"],
13+
"subject-full-stop": [2, "never", "."],
14+
"type-case": [2, "always", "lower-case"],
15+
"type-empty": [2, "never"],
16+
"type-enum": [
17+
2,
18+
"always",
19+
["feat", "fix", "docs", "perf", "refactor", "build", "ci", "revert", "style", "test", "chore"]
20+
]
21+
}
22+
}

0 commit comments

Comments
 (0)