chore: migrate commitlint config to MJS for wagoid/commitlint-gha
Some checks failed
Build eslint-config-scratch / build-eslint (push) Has been cancelled

This commit is contained in:
Christopher Willis-Ford 2025-01-16 14:29:46 -08:00
parent 5773ddf841
commit eb6f0b1726
4 changed files with 12 additions and 5 deletions

View file

@ -1,4 +0,0 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
ignores: [message => message.startsWith('chore(release):')]
};

10
commitlint.config.mjs Normal file
View file

@ -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):')]
};

2
package-lock.json generated
View file

@ -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"

View file

@ -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",