-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
29 lines (29 loc) · 899 Bytes
/
Copy pathcommitlint.config.js
File metadata and controls
29 lines (29 loc) · 899 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
25
26
27
28
29
export default {
extends: ['@commitlint/config-conventional'],
rules: {
// Enforce conventional commit types
'type-enum': [
2,
'always',
[
'feat', // New feature
'fix', // Bug fix
'docs', // Documentation only
'style', // Code style (formatting, semicolons, etc)
'refactor', // Code change that neither fixes a bug nor adds a feature
'perf', // Performance improvement
'test', // Adding or correcting tests
'build', // Build system or external dependencies
'ci', // CI configuration
'chore', // Maintenance tasks
'revert', // Revert a previous commit
],
],
// Subject should not be empty
'subject-empty': [2, 'never'],
// Type should not be empty
'type-empty': [2, 'never'],
// Subject max length
'subject-max-length': [2, 'always', 100],
},
};