Skip to content

Commit ed32114

Browse files
fix: configure commitlint to ignore dependabot commits & set more rules
same as in smbackend and kerrokantasi-ui projects - https://github.com/City-of-Helsinki/smbackend/ - https://github.com/City-of-Helsinki/kerrokantasi-ui
1 parent a119897 commit ed32114

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

commitlint.config.cjs

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
module.exports = {
22
extends: ['@commitlint/config-conventional'],
3+
ignores: [(message) => message.includes('Signed-off-by: dependabot[bot]')],
34
rules: {
5+
'header-max-length': [2, 'always', 72],
6+
'body-max-line-length': [2, 'always', 72],
7+
'body-leading-blank': [2, 'always'],
48
'type-enum': [
59
2,
610
'always',
711
[
12+
'build',
13+
'chore',
14+
'ci',
15+
'deps',
16+
'docs',
817
'feat',
918
'fix',
10-
'docs',
11-
'chore',
12-
'build',
13-
'style',
19+
'perf',
1420
'refactor',
15-
'ci',
16-
'test',
1721
'revert',
18-
'perf',
19-
'vercel',
22+
'style',
23+
'test',
2024
],
2125
],
2226
},

0 commit comments

Comments
 (0)