-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
37 lines (31 loc) · 1.16 KB
/
commitlint.config.js
File metadata and controls
37 lines (31 loc) · 1.16 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
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'header-max-length': [2, 'always', 200],
// Disable subject-case rule to allow any case in the subject
'subject-case': [0, 'never'],
// Keep type in lowercase (feat, fix, etc.)
'type-case': [2, 'always', 'lower-case'],
// Disable scope-case rule to allow any case in scope like (Test)
'scope-case': [0, 'never'],
// Allow longer body messages for detailed descriptions
'body-max-line-length': [0, 'always'],
'type-enum': [
2,
'always',
[
'feat', // New feature or functionality
'fix', // Bug fix or correction
'docs', // Documentation changes
'style', // Code style changes (e.g., formatting, whitespace)
'refactor', // Code refactoring without changing functionality
'perf', // Performance improvements
'test', // Adding or updating tests
'chore', // Routine tasks like build process or dependency updates
'revert', // Reverting a previous commit
'ci', // Changes to our CI configuration files and scripts
'wip', // Work in progress
],
],
},
};