-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
37 lines (37 loc) · 1.15 KB
/
commitlint.config.js
File metadata and controls
37 lines (37 loc) · 1.15 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
export default {
extends: ['@commitlint/config-conventional'],
rules: {
// Type must be one of the conventional types
'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 tests
'build', // Build system changes
'ci', // CI/CD changes
'chore', // Maintenance tasks
'revert', // Revert previous commit
],
],
// Subject should not be empty
'subject-empty': [2, 'never'],
// Subject should not end with period
'subject-full-stop': [2, 'never', '.'],
// Subject should be lowercase
'subject-case': [2, 'always', 'lower-case'],
// Type should be lowercase
'type-case': [2, 'always', 'lower-case'],
// Type should not be empty
'type-empty': [2, 'never'],
// Header max length
'header-max-length': [2, 'always', 100],
// Body max line length
'body-max-line-length': [1, 'always', 200],
},
};