-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.mjs
More file actions
31 lines (31 loc) · 1.04 KB
/
commitlint.config.mjs
File metadata and controls
31 lines (31 loc) · 1.04 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
export default {
extends: ['@commitlint/config-conventional'],
rules: {
// Type must be one of these values
'type-enum': [
2,
'always',
[
'feat', // New feature
'fix', // Bug fix
'docs', // Documentation changes
'style', // Code style changes (formatting, semicolons, etc.)
'refactor', // Code refactoring (no functional changes)
'perf', // Performance improvements
'test', // Adding or updating tests
'build', // Build system or external dependencies
'ci', // CI/CD configuration changes
'chore', // Maintenance tasks
'revert', // Reverting a previous commit
],
],
// Scope is optional but should be lowercase if provided
'scope-case': [2, 'always', 'lower-case'],
// Subject should not be empty and not end with a period
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
// Body and footer are optional
'body-leading-blank': [2, 'always'],
'footer-leading-blank': [2, 'always'],
},
};