-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.ts
More file actions
25 lines (25 loc) · 1018 Bytes
/
Copy pathcommitlint.config.ts
File metadata and controls
25 lines (25 loc) · 1018 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
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
// Header rules - more lenient
'header-max-length': [2, 'always', 100], // Increased from default 72
'type-case': [2, 'always', 'lower-case'],
'type-enum': [
2,
'always',
['build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test'],
],
'scope-case': [2, 'always', 'lower-case'],
'subject-case': [0], // Disable case checking for subject
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
// Body rules - much more lenient
'body-leading-blank': [2, 'always'],
'body-max-line-length': [1, 'always', 200], // Warning only, increased from 72
'body-max-length': [1, 'always', 1000], // Warning only, very lenient
// Footer rules - lenient
'footer-leading-blank': [2, 'always'],
'footer-max-line-length': [1, 'always', 200], // Warning only
'footer-max-length': [1, 'always', 500], // Warning only
},
};