Skip to content

Commit 5e1528c

Browse files
committed
Fix(commitlint): Allow to use upper-case in commit type
* used only for suppressing the warning when using breaking change type * add breaking changes singular to type enum
1 parent facd589 commit 5e1528c

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

packages/commitlint-config/index.js

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,31 @@ module.exports = {
33
parserPreset: '@lmc-eu/conventional-changelog-lmc',
44
ignores: [(commit) => commit.includes('[CI-SKIP]')],
55
rules: {
6-
'type-case': [1, 'always', 'pascal-case'],
6+
'type-case': [
7+
1,
8+
'always',
9+
// We are using `pascal-case` for every type but
10+
// allowing `upper-case` only for use of `BREAKING CHANGE(S)`
11+
// so this should not lead to define any other type in `upper-case`
12+
['pascal-case', 'upper-case'],
13+
],
714
'type-enum': [
815
2,
916
'always',
10-
['Feat', 'Fix', 'Docs', 'Style', 'Refactor', 'Test', 'Revert', 'Perf', 'Chore', 'Deps', 'BREAKING CHANGES'],
17+
[
18+
'Feat',
19+
'Fix',
20+
'Docs',
21+
'Style',
22+
'Refactor',
23+
'Test',
24+
'Revert',
25+
'Perf',
26+
'Chore',
27+
'Deps',
28+
'BREAKING CHANGES',
29+
'BREAKING CHANGE',
30+
],
1131
],
1232
'subject-case': [2, 'always', 'sentence-case'],
1333
},

0 commit comments

Comments
 (0)