-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
31 lines (30 loc) · 1.02 KB
/
commitlint.config.js
File metadata and controls
31 lines (30 loc) · 1.02 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
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'feat', // New feature
'feat!', // New feature (breaking change)
'fix', // Bug fix
'fix!', // Bug fix (breaking change)
'docs', // Documentation changes
'style', // Code style changes
'refactor', // Code refactoring
'test', // Test changes
'chore', // Other changes
'revert', // Reverts a previous commit
'ci', // CI/CD changes
'init', // Initial commit
'major', // Major version bump
'minor', // Minor version bump
],
],
'type-case': [2, 'always', 'lower-case'], // Always use lowercase for type
'type-empty': [2, 'never'], // Type cannot be empty
'scope-empty': [1, 'never'], // Scope cannot be empty
'scope-case': [2, 'always', 'lower-case'], // Always use lowercase for scope
'header-max-length': [2, 'always', 250], // Header cannot be longer than 250 characters
},
};