From ce3c384aac0ab4539c32d4ce01f80babc8f4979a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20W=C3=BCrsten?= Date: Thu, 8 Feb 2024 11:20:23 +0100 Subject: [PATCH] fix: simplify ignore list --- .github/configs/commitlint.config.js | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/.github/configs/commitlint.config.js b/.github/configs/commitlint.config.js index 116bb3b..d2cbef8 100644 --- a/.github/configs/commitlint.config.js +++ b/.github/configs/commitlint.config.js @@ -1,27 +1,5 @@ -const { maxLineLength } = require('@commitlint/ensure') - -const bodyMaxLineLength = 200 - -const validateBodyMaxLengthIgnoringDeps = (parsedCommit) => { - const { type, scope, body } = parsedCommit - const isDepsCommit = - type === 'chore' && scope === 'release' - - return [ - isDepsCommit || !body || maxLineLength(body, bodyMaxLineLength), - `body's lines must not be longer than ${bodyMaxLineLength}`, - ] -} - module.exports = { - extends: ['@commitlint/config-conventional'], - plugins: ['commitlint-plugin-function-rules'], rules: { - 'body-max-line-length': [0], - 'function-rules/body-max-line-length': [ - 2, - 'always', - validateBodyMaxLengthIgnoringDeps, - ], + 'body-max-line-length': [0, "always"], }, }