Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .commitlintrc.js → .commitlintrc.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
extends: ['./packages/commitlint-config'],
rules: {
'scope-enum': [
Expand Down
5 changes: 3 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"version": {
"allowBranch": ["release"],
"conventionalCommits": true,
"changelogPreset": "./packages/conventional-changelog-lmc-github",
"changelogPreset": "conventional-changelog-conventionalcommits",
"createRelease": "github",
"push": false,
"message": "Chore: Release [CI-SKIP]",
"message": "chore: release [CI-SKIP]",
"ignoreChanges": ["test/**", "yarn.lock"]
}
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
},
"devDependencies": {
"@commitlint/cli": "19.8.1",
"conventional-changelog-conventionalcommits": "^9.1.0",
"eslint": "8.57.1",
"eslint-config-prettier": "9.1.2",
"eslint-import-resolver-node": "0.3.9",
Expand Down
29 changes: 4 additions & 25 deletions packages/commitlint-config/index.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,13 @@
module.exports = {
import conventionalConfig from '@commitlint/config-conventional';

export default {
extends: ['@commitlint/config-conventional'],
parserPreset: '@lmc-eu/conventional-changelog-lmc',
ignores: [(commit) => commit.includes('[CI-SKIP]')],
rules: {
'type-case': [
1,
'always',
// We are using `pascal-case` for every type but
// allowing `upper-case` only for use of `BREAKING CHANGE(S)`
// so this should not lead to define any other type in `upper-case`
['pascal-case', 'upper-case'],
],
'type-enum': [
2,
'always',
[
'Feat',
'Fix',
'Docs',
'Style',
'Refactor',
'Test',
'Revert',
'Perf',
'Chore',
'Deps',
'BREAKING CHANGES',
'BREAKING CHANGE',
],
[...conventionalConfig.rules['type-enum'][2], 'deps', 'BREAKING CHANGES', 'BREAKING CHANGE'],
],
'subject-case': [2, 'always', 'sentence-case'],
},
};
19 changes: 11 additions & 8 deletions packages/commitlint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
{
"name": "@lmc-eu/commitlint-config",
"name": "@alma-oss/commitlint-config",
"version": "2.0.3",
"description": "LMC's configuration for commitlint",
"description": "Alma's configuration for commitlint",
"keywords": [
"commitlint",
"lmc",
"alma",
"config"
],
"author": "Tomáš Litera <[email protected]>",
"license": "BSD-3-Clause",
"type": "module",
"author": "Tomáš Litera <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/lmc-eu/code-quality-tools",
"directory": "packages/commitlint-config"
},
"main": "index.js",
"exports": {
".": "./index.js"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": "^16 || ^18 || >=20"
"node": "^18 || >=20"
},
"dependencies": {
"@commitlint/config-conventional": "^17.0.0",
"@lmc-eu/conventional-changelog-lmc": "^2.0.3"
"@commitlint/config-conventional": "^19.0.0"
}
}
46 changes: 28 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ __metadata:
version: 8
cacheKey: 10c0

"@alma-oss/commitlint-config@workspace:packages/commitlint-config":
version: 0.0.0-use.local
resolution: "@alma-oss/commitlint-config@workspace:packages/commitlint-config"
dependencies:
"@commitlint/config-conventional": "npm:^19.0.0"
languageName: unknown
linkType: soft

"@alma-oss/prettier-config@workspace:packages/prettier-config":
version: 0.0.0-use.local
resolution: "@alma-oss/prettier-config@workspace:packages/prettier-config"
Expand Down Expand Up @@ -490,12 +498,13 @@ __metadata:
languageName: node
linkType: hard

"@commitlint/config-conventional@npm:^17.0.0":
version: 17.8.1
resolution: "@commitlint/config-conventional@npm:17.8.1"
"@commitlint/config-conventional@npm:^19.0.0":
version: 19.8.1
resolution: "@commitlint/config-conventional@npm:19.8.1"
dependencies:
conventional-changelog-conventionalcommits: "npm:^6.1.0"
checksum: 10c0/70abdc9f1361386060b30620decc376bc33ff0c27c6f2f89511df1d53127d238af7c3409db22651282caa614d54b91b1f5e35905d12b1f5db70603c351f6e482
"@commitlint/types": "npm:^19.8.1"
conventional-changelog-conventionalcommits: "npm:^7.0.2"
checksum: 10c0/654786e1acd64756e5c88838c19d9eb5d5ee7a6f314af65585dc18cc4002990e971614e7c69f49e5489be9430671aa5b39af005a2160c5a4f26391258d38febf
languageName: node
linkType: hard

Expand Down Expand Up @@ -1519,15 +1528,6 @@ __metadata:
languageName: unknown
linkType: soft

"@lmc-eu/commitlint-config@workspace:packages/commitlint-config":
version: 0.0.0-use.local
resolution: "@lmc-eu/commitlint-config@workspace:packages/commitlint-config"
dependencies:
"@commitlint/config-conventional": "npm:^17.0.0"
"@lmc-eu/conventional-changelog-lmc": "npm:^2.0.3"
languageName: unknown
linkType: soft

"@lmc-eu/conventional-changelog-lmc-bitbucket@workspace:packages/conventional-changelog-lmc-bitbucket":
version: 0.0.0-use.local
resolution: "@lmc-eu/conventional-changelog-lmc-bitbucket@workspace:packages/conventional-changelog-lmc-bitbucket"
Expand Down Expand Up @@ -4518,6 +4518,7 @@ __metadata:
resolution: "code-quality-tools@workspace:."
dependencies:
"@commitlint/cli": "npm:19.8.1"
conventional-changelog-conventionalcommits: "npm:^9.1.0"
eslint: "npm:8.57.1"
eslint-config-prettier: "npm:9.1.2"
eslint-import-resolver-node: "npm:0.3.9"
Expand Down Expand Up @@ -4704,12 +4705,21 @@ __metadata:
languageName: node
linkType: hard

"conventional-changelog-conventionalcommits@npm:^6.1.0":
version: 6.1.0
resolution: "conventional-changelog-conventionalcommits@npm:6.1.0"
"conventional-changelog-conventionalcommits@npm:^7.0.2":
version: 7.0.2
resolution: "conventional-changelog-conventionalcommits@npm:7.0.2"
dependencies:
compare-func: "npm:^2.0.0"
checksum: 10c0/3cb1eab35e37fc973cfb3aed0e159f54414e49b222988da1c2aa86cc8a87fe7531491bbb7657fe5fc4dc0e25f5b50e2065ba8ac71cc4c08eed9189102a2b81bd
languageName: node
linkType: hard

"conventional-changelog-conventionalcommits@npm:^9.1.0":
version: 9.1.0
resolution: "conventional-changelog-conventionalcommits@npm:9.1.0"
dependencies:
compare-func: "npm:^2.0.0"
checksum: 10c0/b313f5c0160d109f58d976566e1331ede3a25ab19fbf43f86763b280659195de00a68551f7f3930bf1cbf39a5e707d94f2a25b79996e59043fa9ee0bed68a79f
checksum: 10c0/b1dfbb8ce5983bb80837c35f089fb0f9603a1b067f34be680f88fde20871792e461e29d119d468bc293f38a1ca916c1c40a841f8c049a0a1efaa40582f4fecc9
languageName: node
linkType: hard

Expand Down