-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
31 lines (30 loc) · 1.22 KB
/
commitlint.config.js
File metadata and controls
31 lines (30 loc) · 1.22 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
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
// Commit types allowed
'type-enum': [
2,
'always',
[
'feat', // New feature
'fix', // Bug fix
'docs', // Documentation only
'style', // Formatting, missing semicolons, etc.
'refactor', // Code change that neither fixes a bug nor adds a feature
'perf', // Performance improvement
'test', // Adding missing tests
'build', // Changes to build process
'ci', // CI configuration changes
'chore', // Other changes that don't modify src or test files
'revert', // Reverts a previous commit
],
],
// Relaxed rules - disable strict length limits
'body-max-line-length': [0], // Disable body line length limit
'header-max-length': [0], // Disable header length limit
'footer-max-line-length': [0], // Disable footer line length limit
'subject-case': [0], // Allow any case in subject
'subject-full-stop': [0], // Allow trailing period in subject
'body-leading-blank': [1, 'always'], // Warn (not error) if no blank line before body
},
};