From 89063973726c720a4bbab251fa186f783f457ceb Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Mon, 15 Apr 2024 12:47:35 -0700 Subject: [PATCH] fix: turn of body-max-line-length commitlint rule --- .commitlintrc.js | 3 ++- lib/content/commitlintrc-js.hbs | 3 ++- tap-snapshots/test/apply/source-snapshots.js.test.cjs | 6 ++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.commitlintrc.js b/.commitlintrc.js index 5b0b1a52..e9c80b92 100644 --- a/.commitlintrc.js +++ b/.commitlintrc.js @@ -5,6 +5,7 @@ module.exports = { rules: { 'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'deps', 'chore']], 'header-max-length': [2, 'always', 80], - 'subject-case': [0, 'always', ['lower-case', 'sentence-case', 'start-case']], + 'subject-case': [0], + 'body-max-line-length': [0], }, } diff --git a/lib/content/commitlintrc-js.hbs b/lib/content/commitlintrc-js.hbs index 26966878..8b19e3fa 100644 --- a/lib/content/commitlintrc-js.hbs +++ b/lib/content/commitlintrc-js.hbs @@ -3,6 +3,7 @@ module.exports = { rules: { 'type-enum': [2, 'always', [{{{ join (quote (pluck changelogTypes "type")) }}}]], 'header-max-length': [2, 'always', 80], - 'subject-case': [0, 'always', ['lower-case', 'sentence-case', 'start-case']], + 'subject-case': [0], + 'body-max-line-length': [0], }, } diff --git a/tap-snapshots/test/apply/source-snapshots.js.test.cjs b/tap-snapshots/test/apply/source-snapshots.js.test.cjs index 092be5f4..83e02510 100644 --- a/tap-snapshots/test/apply/source-snapshots.js.test.cjs +++ b/tap-snapshots/test/apply/source-snapshots.js.test.cjs @@ -15,7 +15,8 @@ module.exports = { rules: { 'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'deps', 'chore']], 'header-max-length': [2, 'always', 80], - 'subject-case': [0, 'always', ['lower-case', 'sentence-case', 'start-case']], + 'subject-case': [0], + 'body-max-line-length': [0], }, } @@ -1448,7 +1449,8 @@ module.exports = { rules: { 'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'deps', 'chore']], 'header-max-length': [2, 'always', 80], - 'subject-case': [0, 'always', ['lower-case', 'sentence-case', 'start-case']], + 'subject-case': [0], + 'body-max-line-length': [0], }, }