-
Notifications
You must be signed in to change notification settings - Fork 133
Expand file tree
/
Copy pathcommitlint.config.mjs
More file actions
33 lines (29 loc) · 1.04 KB
/
commitlint.config.mjs
File metadata and controls
33 lines (29 loc) · 1.04 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
// Commitlint config tuned for Linux kernel-style commit messages.
//
// Expected format:
// subsystem: short description (max 72 chars)
// <blank line>
// Body text wrapped at 72 chars.
// <blank line>
// Signed-off-by: Name <email>
export default {
rules: {
// Subject line limit (Linux kernel style uses up to 72)
'header-max-length': [2, 'always', 72],
// Body and footer lines wrapped at 72 chars.
// Footer limit is relaxed to 200 to accommodate long Signed-off-by
// addresses without false positives.
'body-max-line-length': [2, 'always', 72],
'footer-max-line-length': [2, 'always', 200],
// Require a blank line between subject and body, and before footers
'body-leading-blank': [2, 'always'],
'footer-leading-blank': [2, 'always'],
// Disable Conventional Commits type rules - this project uses
// Linux kernel–style "subsystem: description" subjects instead.
'type-enum': [0],
'type-case': [0],
'type-empty': [0],
'scope-empty': [0],
'subject-case': [0],
},
};