Skip to content

Commit 530a569

Browse files
authored
Merge pull request #225 from nanotaboada/feature/commitlint-config
chore(ci): add commitlint config rules
2 parents ecaf5fd + 867fee6 commit 530a569

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

commitlint.config.mjs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import conventional from "@commitlint/config-conventional";
2+
3+
export default {
4+
...conventional,
5+
rules: {
6+
"header-max-length": [2, "always", 80],
7+
"body-max-line-length": [2, "always", 80],
8+
},
9+
ignores: [
10+
// skip any commit whose body contains the Dependabot signature
11+
(message) => message.includes("Signed‑off‑by: dependabot[bot]"),
12+
// skip any Dependabot‑style bump header
13+
(message) => /^chore\(deps(-dev)?\): bump /.test(message),
14+
],
15+
};

0 commit comments

Comments
 (0)