From a9c5cb9a38d95ce9a4f9ee9bf7a38b49faed1f1e Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Tue, 30 Jan 2024 09:29:53 +0900 Subject: [PATCH] feat(commitlint): loosen `body-max-line-length` from 100 to 300 100 is sometimes too strict for auto-generated commits like Dependabot pull requests. --- lib/init.js | 2 +- test/__snapshots__/init.test.js.snap | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/init.js b/lib/init.js index 9255205d..7393a56f 100644 --- a/lib/init.js +++ b/lib/init.js @@ -109,7 +109,7 @@ const initCommand = (baseDir, logger) => { packageInfo.commitlint = { extends: ["@commitlint/config-conventional"], rules: { - "body-max-line-length": [1, "always", 100], + "body-max-line-length": [1, "always", 300], }, }; diff --git a/test/__snapshots__/init.test.js.snap b/test/__snapshots__/init.test.js.snap index 8d4693f2..00c03556 100644 --- a/test/__snapshots__/init.test.js.snap +++ b/test/__snapshots__/init.test.js.snap @@ -10,7 +10,7 @@ exports[`update "package.json" 1`] = ` "body-max-line-length": [ 1, "always", - 100, + 300, ], }, }, @@ -83,7 +83,7 @@ exports[`update "package.json" without fields 1`] = ` "body-max-line-length": [ 1, "always", - 100, + 300, ], }, },