From 3b3edf70daa49e62bba698905816c3f4bafcac62 Mon Sep 17 00:00:00 2001 From: Yannick Augenstein Date: Mon, 20 Oct 2025 20:04:42 +0200 Subject: [PATCH] chore(commitlint): allow breaking change flag without scope case chore(commitlint): bump line length limit to 120 --- .commitlintrc.json | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.commitlintrc.json b/.commitlintrc.json index ba6ed214f1..5d7c441942 100644 --- a/.commitlintrc.json +++ b/.commitlintrc.json @@ -1,8 +1,23 @@ { + "parserPreset": { + "parserOpts": { + "headerPattern": "^([^\\(\\s:!]+)(?:\\(([^)]+)\\))?(!)?: (.+)$", + "headerCorrespondence": [ + "type", + "scope", + "breaking", + "subject" + ], + "noteKeywords": [ + "BREAKING CHANGE", + "BREAKING CHANGES" + ] + } + }, "rules": { "header-min-length": [2, "always", 12], - "header-max-length": [2, "always", 72], - "footer-max-line-length": [2, "always", 72], + "header-max-length": [2, "always", 120], + "footer-max-line-length": [2, "always", 120], "type-empty": [2, "never"], "type-enum": [2, "always", [ "feat", @@ -17,7 +32,7 @@ "chore", "revert" ]], - "body-max-line-length": [2, "always", 72], - "scope-case": [2, "always", "lower-case"] + "body-max-line-length": [2, "always", 120], + "scope-case": [0] } -} \ No newline at end of file +}