Skip to content

Commit

Permalink
commitlint: extract footerMaxLineLength
Browse files Browse the repository at this point in the history
So that it is together with other consts in same place.
  • Loading branch information
knocte committed Feb 5, 2023
1 parent 8c620a0 commit 21c43e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion commitlint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { RuleConfigSeverity } from "@commitlint/types";

let bodyMaxLineLength = 64;
let headerMaxLineLength = 50;
let footerMaxLineLength = 150;

module.exports = {
parserPreset: "conventional-changelog-conventionalcommits",
Expand All @@ -16,7 +17,11 @@ module.exports = {
],
"empty-wip": [RuleConfigSeverity.Error, "always"],
"footer-leading-blank": [RuleConfigSeverity.Warning, "always"],
"footer-max-line-length": [RuleConfigSeverity.Error, "always", 150],
"footer-max-line-length": [
RuleConfigSeverity.Error,
"always",
footerMaxLineLength
],
"footer-notes-misplacement": [RuleConfigSeverity.Error, "always"],
"footer-references-existence": [RuleConfigSeverity.Error, "always"],
"header-max-length-with-suggestions": [
Expand Down

0 comments on commit 21c43e8

Please sign in to comment.