From 867fee619d3071eae04ee43736749a427e51a0fa Mon Sep 17 00:00:00 2001 From: Nano Taboada <87288+nanotaboada@users.noreply.github.com> Date: Thu, 1 May 2025 09:11:25 -0300 Subject: [PATCH] chore(ci): add commitlint config rules --- commitlint.config.mjs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 commitlint.config.mjs diff --git a/commitlint.config.mjs b/commitlint.config.mjs new file mode 100644 index 0000000..31fc263 --- /dev/null +++ b/commitlint.config.mjs @@ -0,0 +1,15 @@ +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), + ], +};