diff --git a/commitlint.config.mjs b/commitlint.config.mjs index 9617c32..197735d 100644 --- a/commitlint.config.mjs +++ b/commitlint.config.mjs @@ -1,16 +1,14 @@ -// .commitlint.config.mjs -import conventional from '@commitlint/config-conventional'; +import conventional from "@commitlint/config-conventional"; export default { - ...conventional, - rules: { - 'header-max-length': [2, 'always', 80], - 'body-max-line-length': [2, 'always', 80], - }, - ignores: [ - // skip any commit whose body contains the Dependabot signature - (message) => message.includes('Signed‑off‑by: dependabot[bot]'), - // skip any Dependabot‑style bump header - (message) => /^chore\(deps(-dev)?\): bump /.test(message), - ], + ...conventional, + rules: { + "header-max-length": [2, "always", 80], + "body-max-line-length": [2, "always", 80], + }, + ignores: [ + // bypass Dependabot-style commits + (message) => /^chore\(deps(-dev)?\): bump /.test(message), + (message) => /Signed-off-by: dependabot\[bot\]/.test(message), + ], };