forked from TTL-Legacy/TTL-Legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
32 lines (32 loc) · 1.16 KB
/
Copy pathcommitlint.config.js
File metadata and controls
32 lines (32 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
module.exports = {
// Extend the conventional commits ruleset
extends: ["@commitlint/config-conventional"],
rules: {
// Allowed commit types for TTL-Legacy
"type-enum": [
2,
"always",
[
"feat", // New feature
"fix", // Bug fix
"docs", // Documentation changes
"style", // Formatting, missing semicolons, etc.
"refactor", // Code refactor without feature or fix
"perf", // Performance improvement
"test", // Adding or updating tests
"build", // Build system changes
"ci", // CI/CD configuration changes
"chore", // Other changes that do not modify src or test files
"revert", // Reverts a previous commit
"security", // Security fix or hardening
"sec", // Alias for security
],
],
// Subject line must not end with a period
"subject-full-stop": [2, "never", "."],
// Subject line must be lowercase
"subject-case": [2, "never", ["sentence-case", "start-case", "pascal-case", "upper-case"]],
// Header must not exceed 100 characters
"header-max-length": [2, "always", 100],
},
};