-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
90 lines (74 loc) · 2.03 KB
/
commitlint.config.js
File metadata and controls
90 lines (74 loc) · 2.03 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/**
* Commitlint configuration for Bond Math
*
* Enforces Conventional Commits format with project-specific scopes and types.
* See contributing.md for detailed commit message standards.
*/
export default {
extends: ['@commitlint/config-conventional'],
rules: {
// Type enum - must match one of these
'type-enum': [
2,
'always',
[
'feat', // New feature
'fix', // Bug fix
'docs', // Documentation only
'style', // Code style (formatting, etc.)
'refactor', // Code refactoring
'perf', // Performance improvement
'test', // Adding/updating tests
'build', // Build system or dependencies
'ci', // CI/CD configuration
'chore', // Other changes
'arch', // Architecture changes (diagrams, ADRs)
'revert', // Revert a previous commit
],
],
// Scope enum - must match one of these (optional)
'scope-enum': [
2,
'always',
[
// Services
'gateway',
'daycount',
'valuation',
'metrics',
'pricing',
// Infrastructure
'iac',
'deploy',
// Cross-cutting
'auth',
'docs',
'testing',
'api',
// UI
'ui',
// Other
'deps',
'release',
],
],
// Subject must be lowercase
'subject-case': [2, 'always', 'lower-case'],
// Subject must not end with period
'subject-full-stop': [2, 'never', '.'],
// Subject must not be empty
'subject-empty': [2, 'never'],
// Type must be lowercase
'type-case': [2, 'always', 'lower-case'],
// Type must not be empty
'type-empty': [2, 'never'],
// Scope must be lowercase (when provided)
'scope-case': [2, 'always', 'lower-case'],
// Header (first line) max length
'header-max-length': [2, 'always', 100],
// Body max line length
'body-max-line-length': [2, 'always', 100],
// Footer max line length
'footer-max-line-length': [2, 'always', 100],
},
};