-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
18 lines (18 loc) · 1019 Bytes
/
Copy pathcommitlint.config.js
File metadata and controls
18 lines (18 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Conventional commits, because the release notes and the version bump are both derived from
// them. A message that does not parse means a release that silently misses a change.
//
// Note what the major number means here: see .release-it.cjs. A breaking change is still written
// as one, with `!` or a BREAKING CHANGE footer, and it still shows up in the changelog. It just
// does not decide the major on its own.
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
// the default 100 is tight for a subject that has to say what changed and why
"header-max-length": [2, "always", 120],
// the body carries the reasoning, and it is worth room to breathe
"body-max-line-length": [2, "always", 100],
// the Developer Certificate of Origin: whoever commits certifies they may contribute the
// change under the project's licence. The prepare-commit-msg hook writes the line
"signed-off-by": [2, "always", "Signed-off-by:"]
}
};