-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
51 lines (46 loc) · 1.61 KB
/
commitlint.config.js
File metadata and controls
51 lines (46 loc) · 1.61 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
export default {
extends: ['@commitlint/config-conventional'],
rules: {
// Scope rules
'scope-empty': [2, 'never'],
'scope-case': [2, 'always', 'kebab-case'],
// Header rules - more flexible
'header-case': [0],
'header-max-length': [2, 'always', 150],
'header-min-length': [1, 'always', 3],
'header-full-stop': [2, 'never', '.'],
// subject rules - more flexible
'subject-case': [0],
'subject-empty': [2, 'never'],
'subject-max-length': [2, 'always', 150],
'subject-min-length': [1, 'always', 3],
'subject-full-stop': [2, 'never', '.'],
// Body rules
'body-max-line-length': [0],
'body-leading-blank': [2, 'always'],
// Type rules
'type-empty': [2, 'never'],
'type-case': [2, 'always', 'lower-case'],
'type-enum': [
2,
'always',
[
'feat', // New feature
'fix', // Bug fix
'docs', // Documentation
'style', // Code style (formatting, etc)
'refactor', // Code refactoring
'perf', // Performance improvements
'test', // Adding or updating tests
'chore', // Maintenance tasks
'ci', // CI/CD changes
'build', // Build system changes
'revert', // Revert previous commit
'wip', // Work in progress
'hotfix', // Critical fixes
],
],
// Footer rules - flexible
'footer-max-line-length': [0],
},
}