-
-
Notifications
You must be signed in to change notification settings - Fork 185
Expand file tree
/
Copy pathcommitlint.config.cjs
More file actions
26 lines (26 loc) · 1.02 KB
/
commitlint.config.cjs
File metadata and controls
26 lines (26 loc) · 1.02 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
// Commitlint configuration for conventional commits
// See: https://commitlint.js.org/
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
// Allowed commit types (determines version bump)
'type-enum': [2, 'always', [
'feat', // New feature → MINOR
'fix', // Bug fix → PATCH
'docs', // Documentation only → no release
'style', // Formatting, no code change → no release
'refactor', // Code change, no feat/fix → no release
'perf', // Performance improvement → PATCH
'test', // Adding tests → no release
'chore', // Maintenance → no release
'ci', // CI/CD changes → no release
'build', // Build system → no release
'revert', // Revert commit → PATCH
'hotfix' // Production hotfix → PATCH
]],
// Subject case - disabled to allow capital letters
'subject-case': [0],
// Max header length (type + scope + subject)
'header-max-length': [2, 'always', 100]
}
};