Skip to content

Commit 8d920ce

Browse files
committed
chore(ci): move commitlint config from JSON to ECMAScript module
1 parent d130336 commit 8d920ce

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.commitlintrc.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

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)