-
-
Notifications
You must be signed in to change notification settings - Fork 136
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
24 lines (24 loc) · 816 Bytes
/
commitlint.config.js
File metadata and controls
24 lines (24 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'feat', // New feature
'fix', // Bug fix
'docs', // Documentation changes
'style', // Code style changes (formatting, no logic change)
'refactor', // Code refactoring
'perf', // Performance improvements
'test', // Test additions or fixes
'build', // Build system changes
'ci', // CI/CD changes
'chore', // Maintenance tasks
'revert', // Revert previous commit
],
],
'subject-case': [0], // Disable subject case checking
'body-max-line-length': [0], // Disable body line length (GitHub squash merges often exceed 100 chars)
},
};