diff --git a/commitlint.config.js b/commitlint.config.js index 276c480..c34aa79 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1,26 +1,3 @@ -const Configuration = { - /* - * Resolve and load @commitlint/config-conventional from node_modules. - * Referenced packages must be installed - */ - extends: ["@commitlint/config-angular"], - /* - * Resolve and load @commitlint/format from node_modules. - * Referenced package must be installed yep - */ - formatter: "@commitlint/format", - /* - * Whether commitlint uses the default ignore rules. - */ - defaultIgnores: true, - /* - * Custom URL to show upon failure - */ - helpUrl: - "https://github.com/angular/angular/blob/22b96b9/CONTRIBUTING.md#-commit-message-guidelines", - rules: { - "type-enum": [2, 'always' ,["ci", "docs", "feat", "fix", "refactor", "test", "chore"]], - }, +module.exports = { + extends: ['@commitlint/config-conventional'] }; - -module.exports = Configuration; diff --git a/package-lock.json b/package-lock.json index f8e2ff4..2d3cb37 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "devDependencies": { "@commitlint/cli": "^17.0.0", - "@commitlint/config-angular": "^17.0.0", + "@commitlint/config-conventional": "^17.6.3", "@escape.tech/mookme": "^2.2.0" } }, @@ -161,27 +161,18 @@ "node": ">=12" } }, - "node_modules/@commitlint/config-angular": { - "version": "17.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/config-angular/-/config-angular-17.0.0.tgz", - "integrity": "sha512-OngMpL/DpCHCebiQEVripTn/STqzbzwcP8jiwnCftXvUAaNQvAEBqbf7IbVPAvkj00WQsjvMQqRZD8D9NY7QaQ==", + "node_modules/@commitlint/config-conventional": { + "version": "17.6.3", + "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-17.6.3.tgz", + "integrity": "sha512-bLyHEjjRWqlLQWIgYFHmUPbEFMOOLXeF3QbUinDIJev/u9e769tkoTH9YPknEywiuIrAgZaVo+OfzAIsJP0fsw==", "dev": true, "dependencies": { - "@commitlint/config-angular-type-enum": "^17.0.0" + "conventional-changelog-conventionalcommits": "^5.0.0" }, "engines": { "node": ">=v14" } }, - "node_modules/@commitlint/config-angular-type-enum": { - "version": "17.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/config-angular-type-enum/-/config-angular-type-enum-17.0.0.tgz", - "integrity": "sha512-OJrxpzszJ+jF0RvqLjsM/iZ94IfJ33NVCFFGVmkzuHjKxPt/i/+yJKJ5lzGhlsp5YV2F2Ui5ECIf5Sor2/OZvQ==", - "dev": true, - "engines": { - "node": ">=v14" - } - }, "node_modules/@commitlint/config-validator": { "version": "17.0.0", "resolved": "https://registry.npmjs.org/@commitlint/config-validator/-/config-validator-17.0.0.tgz", @@ -795,6 +786,20 @@ "node": ">=10" } }, + "node_modules/conventional-changelog-conventionalcommits": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-5.0.0.tgz", + "integrity": "sha512-lCDbA+ZqVFQGUj7h9QBKoIpLhl8iihkO0nCTyRNzuXtcd7ubODpYB04IFy31JloiJgG0Uovu8ot8oxRzn7Nwtw==", + "dev": true, + "dependencies": { + "compare-func": "^2.0.0", + "lodash": "^4.17.15", + "q": "^1.5.1" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/conventional-commits-parser": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.2.3.tgz", @@ -2615,21 +2620,15 @@ } } }, - "@commitlint/config-angular": { - "version": "17.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/config-angular/-/config-angular-17.0.0.tgz", - "integrity": "sha512-OngMpL/DpCHCebiQEVripTn/STqzbzwcP8jiwnCftXvUAaNQvAEBqbf7IbVPAvkj00WQsjvMQqRZD8D9NY7QaQ==", + "@commitlint/config-conventional": { + "version": "17.6.3", + "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-17.6.3.tgz", + "integrity": "sha512-bLyHEjjRWqlLQWIgYFHmUPbEFMOOLXeF3QbUinDIJev/u9e769tkoTH9YPknEywiuIrAgZaVo+OfzAIsJP0fsw==", "dev": true, "requires": { - "@commitlint/config-angular-type-enum": "^17.0.0" + "conventional-changelog-conventionalcommits": "^5.0.0" } }, - "@commitlint/config-angular-type-enum": { - "version": "17.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/config-angular-type-enum/-/config-angular-type-enum-17.0.0.tgz", - "integrity": "sha512-OJrxpzszJ+jF0RvqLjsM/iZ94IfJ33NVCFFGVmkzuHjKxPt/i/+yJKJ5lzGhlsp5YV2F2Ui5ECIf5Sor2/OZvQ==", - "dev": true - }, "@commitlint/config-validator": { "version": "17.0.0", "resolved": "https://registry.npmjs.org/@commitlint/config-validator/-/config-validator-17.0.0.tgz", @@ -3089,6 +3088,17 @@ "q": "^1.5.1" } }, + "conventional-changelog-conventionalcommits": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-5.0.0.tgz", + "integrity": "sha512-lCDbA+ZqVFQGUj7h9QBKoIpLhl8iihkO0nCTyRNzuXtcd7ubODpYB04IFy31JloiJgG0Uovu8ot8oxRzn7Nwtw==", + "dev": true, + "requires": { + "compare-func": "^2.0.0", + "lodash": "^4.17.15", + "q": "^1.5.1" + } + }, "conventional-commits-parser": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.2.3.tgz", diff --git a/package.json b/package.json index 2769f89..6c3189e 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "homepage": "https://github.com/Escape-Technologies/mookme", "devDependencies": { "@commitlint/cli": "^17.0.0", - "@commitlint/config-angular": "^17.0.0", + "@commitlint/config-conventional": "^17.6.3", "@escape.tech/mookme": "^2.2.0" } }