Skip to content

Commit 531ba58

Browse files
committed
commitlint: extract footerMaxLineLength
So that it is together with other consts in same place.
1 parent 8c620a0 commit 531ba58

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

commitlint.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { RuleConfigSeverity } from "@commitlint/types";
44

55
let bodyMaxLineLength = 64;
66
let headerMaxLineLength = 50;
7+
let footerMaxLineLength = 150;
78

89
module.exports = {
910
parserPreset: "conventional-changelog-conventionalcommits",
@@ -16,7 +17,11 @@ module.exports = {
1617
],
1718
"empty-wip": [RuleConfigSeverity.Error, "always"],
1819
"footer-leading-blank": [RuleConfigSeverity.Warning, "always"],
19-
"footer-max-line-length": [RuleConfigSeverity.Error, "always", 150],
20+
"footer-max-line-length": [
21+
RuleConfigSeverity.Error,
22+
"always",
23+
footerMaxLineLength,
24+
],
2025
"footer-notes-misplacement": [RuleConfigSeverity.Error, "always"],
2126
"footer-references-existence": [RuleConfigSeverity.Error, "always"],
2227
"header-max-length-with-suggestions": [

0 commit comments

Comments
 (0)