Skip to content

Commit e6e4563

Browse files
committed
chore(ci): add commitlint config rules
1 parent ad1ec85 commit e6e4563

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

commitlint.config.mjs

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

0 commit comments

Comments
 (0)