This repository was archived by the owner on Apr 20, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
72 lines (66 loc) · 1.99 KB
/
commitlint.config.js
File metadata and controls
72 lines (66 loc) · 1.99 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
// =============================================================================
// bunkit Commitlint Configuration
// =============================================================================
// Enforces Conventional Commits format for semantic versioning
//
// Format: type(scope): description
//
// Examples:
// feat(cli): add new preset option
// fix(templates): resolve database setup error
// refactor(core): improve file system utilities
//
// Product scopes (trigger releases):
// cli, core, templates, generators
//
// Auxiliary scopes (don't trigger releases):
// docs, ci, deps, release, test
// =============================================================================
export default {
extends: ['@commitlint/config-conventional'],
rules: {
// Allowed commit types
'type-enum': [
2,
'always',
[
'feat', // New feature (MINOR bump)
'fix', // Bug fix (PATCH bump)
'docs', // Documentation only
'style', // Formatting, no code change
'refactor', // Code change that neither fixes nor adds (PATCH bump)
'perf', // Performance improvement (PATCH bump)
'test', // Adding tests
'build', // Build system or dependencies
'ci', // CI configuration
'chore', // Other changes
'revert', // Revert commit
],
],
// Allowed scopes (warning only, not blocking)
'scope-enum': [
1,
'always',
[
// Package scopes (trigger releases)
'cli',
'core',
'templates',
'generators',
// Auxiliary scopes (don't trigger releases)
'docs',
'ci',
'deps',
'release',
'test',
'config',
],
],
// Allow any case in subject (we don't enforce lowercase)
'subject-case': [0],
// No limit on body line length (for detailed explanations)
'body-max-line-length': [0],
// No limit on header length (scopes can make headers long)
'header-max-length': [0],
},
};