From eb6f0b1726be7dad262e23816813587603addb23 Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford <7019101+cwillisf@users.noreply.github.com> Date: Thu, 16 Jan 2025 14:29:46 -0800 Subject: [PATCH] chore: migrate commitlint config to MJS for wagoid/commitlint-gha --- commitlint.config.js | 4 ---- commitlint.config.mjs | 10 ++++++++++ package-lock.json | 2 +- package.json | 1 + 4 files changed, 12 insertions(+), 5 deletions(-) delete mode 100644 commitlint.config.js create mode 100644 commitlint.config.mjs diff --git a/commitlint.config.js b/commitlint.config.js deleted file mode 100644 index d89185e..0000000 --- a/commitlint.config.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - extends: ['@commitlint/config-conventional'], - ignores: [message => message.startsWith('chore(release):')] -}; diff --git a/commitlint.config.mjs b/commitlint.config.mjs new file mode 100644 index 0000000..e9c229e --- /dev/null +++ b/commitlint.config.mjs @@ -0,0 +1,10 @@ +// Do not rename, migrate, or convert this file without checking the `wagoid/commitlint-github-action` documentation! +// `commitlint.config.mjs` is the only supported config file name as of `wagoid/commitlint-github-action@v6` + +/** + * @type {import('@commitlint/types').UserConfig} + */ +export default { + extends: ['@commitlint/config-conventional'], + ignores: [message => message.startsWith('chore(release):')] +}; diff --git a/package-lock.json b/package-lock.json index cace908..3ec1ea2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,7 @@ "@babel/eslint-parser": "7.26.5", "@commitlint/cli": "19.6.1", "@commitlint/config-conventional": "19.6.0", + "@commitlint/types": "19.5.0", "eslint": "8.57.1", "husky": "8.0.3", "scratch-semantic-release-config": "3.0.0", @@ -689,7 +690,6 @@ "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-19.5.0.tgz", "integrity": "sha512-DSHae2obMSMkAtTBSOulg5X7/z+rGLxcXQIkg3OmWvY6wifojge5uVMydfhUvs7yQj+V7jNmRZ2Xzl8GJyqRgg==", "dev": true, - "license": "MIT", "dependencies": { "@types/conventional-commits-parser": "^5.0.0", "chalk": "^5.3.0" diff --git a/package.json b/package.json index 5c6cad8..98f0f20 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "@babel/eslint-parser": "7.26.5", "@commitlint/cli": "19.6.1", "@commitlint/config-conventional": "19.6.0", + "@commitlint/types": "19.5.0", "eslint": "8.57.1", "husky": "8.0.3", "scratch-semantic-release-config": "3.0.0",