-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
32 lines (32 loc) · 945 Bytes
/
commitlint.config.js
File metadata and controls
32 lines (32 loc) · 945 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
30
31
32
export default {
extends: ['@commitlint/config-conventional'],
rules: {
// Custom type-enum to include 'a11y' for accessibility commits
'type-enum': [
2,
'always',
[
'feat', // New feature
'fix', // Bug fix
'docs', // Documentation
'style', // Code formatting
'refactor', // Code refactoring
'test', // Tests
'chore', // Maintenance
'perf', // Performance
'a11y', // Accessibility
'ci', // CI/CD changes
'build', // Build system
'revert', // Revert commits
],
],
// Allow longer subjects for descriptive commits
'subject-max-length': [2, 'always', 100],
// Require lowercase type
'type-case': [2, 'always', 'lower-case'],
// Subject should be lowercase
'subject-case': [2, 'always', 'lower-case'],
// No period at end of subject
'subject-full-stop': [2, 'never', '.'],
},
};