Skip to content

Commit fe083c2

Browse files
committed
deps(commitlint)!: upgrade to commitlint v19
BREAKING CHANGE: the package is provided as an ESM only BREAKING CHANGE: abandon usage of the `@lmc-eu/conventional-changelog-lmc`
1 parent dc546d8 commit fe083c2

File tree

3 files changed

+18
-37
lines changed

3 files changed

+18
-37
lines changed
Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,13 @@
1-
module.exports = {
1+
import conventionalConfig from '@commitlint/config-conventional';
2+
3+
export default {
24
extends: ['@commitlint/config-conventional'],
3-
parserPreset: '@lmc-eu/conventional-changelog-lmc',
45
ignores: [(commit) => commit.includes('[CI-SKIP]')],
56
rules: {
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-
],
147
'type-enum': [
158
2,
169
'always',
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-
],
10+
[...conventionalConfig.rules['type-enum'][2], 'deps', 'BREAKING CHANGES', 'BREAKING CHANGE'],
3111
],
32-
'subject-case': [2, 'always', 'sentence-case'],
3312
},
3413
};

packages/commitlint-config/package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,23 @@
99
],
1010
"author": "Tomáš Litera <tomas.litera@lmc.eu>",
1111
"license": "BSD-3-Clause",
12+
"type": "module",
1213
"repository": {
1314
"type": "git",
1415
"url": "https://github.com/lmc-eu/code-quality-tools",
1516
"directory": "packages/commitlint-config"
1617
},
1718
"main": "index.js",
19+
"exports": {
20+
".": "./index.js"
21+
},
1822
"publishConfig": {
1923
"access": "public"
2024
},
2125
"engines": {
22-
"node": "^16 || ^18 || >=20"
26+
"node": "^18 || >=20"
2327
},
2428
"dependencies": {
25-
"@commitlint/config-conventional": "^19.0.0",
26-
"@lmc-eu/conventional-changelog-lmc": "^2.0.3"
29+
"@commitlint/config-conventional": "^19.0.0"
2730
}
2831
}

yarn.lock

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ __metadata:
55
version: 8
66
cacheKey: 10c0
77

8+
"@alma-oss/commitlint-config@workspace:packages/commitlint-config":
9+
version: 0.0.0-use.local
10+
resolution: "@alma-oss/commitlint-config@workspace:packages/commitlint-config"
11+
dependencies:
12+
"@commitlint/config-conventional": "npm:^19.0.0"
13+
languageName: unknown
14+
linkType: soft
15+
816
"@alma-oss/prettier-config@workspace:packages/prettier-config":
917
version: 0.0.0-use.local
1018
resolution: "@alma-oss/prettier-config@workspace:packages/prettier-config"
@@ -1520,15 +1528,6 @@ __metadata:
15201528
languageName: unknown
15211529
linkType: soft
15221530

1523-
"@lmc-eu/commitlint-config@workspace:packages/commitlint-config":
1524-
version: 0.0.0-use.local
1525-
resolution: "@lmc-eu/commitlint-config@workspace:packages/commitlint-config"
1526-
dependencies:
1527-
"@commitlint/config-conventional": "npm:^19.0.0"
1528-
"@lmc-eu/conventional-changelog-lmc": "npm:^2.0.3"
1529-
languageName: unknown
1530-
linkType: soft
1531-
15321531
"@lmc-eu/conventional-changelog-lmc-bitbucket@workspace:packages/conventional-changelog-lmc-bitbucket":
15331532
version: 0.0.0-use.local
15341533
resolution: "@lmc-eu/conventional-changelog-lmc-bitbucket@workspace:packages/conventional-changelog-lmc-bitbucket"

0 commit comments

Comments
 (0)