chore: add commitlint

This commit is contained in:
Christopher Willis-Ford 2025-02-06 08:38:58 -08:00
parent 0b9570eb60
commit 4d1343ee90
4 changed files with 1373 additions and 6 deletions

9
.github/workflows/commitlint.yml vendored Normal file
View file

@ -0,0 +1,9 @@
name: Lint commit messages
on: [pull_request]
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: wagoid/commitlint-github-action@5ce82f5d814d4010519d15f0552aec4f17a1e1fe # v5

4
commitlint.config.js Normal file
View file

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

1364
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -20,6 +20,8 @@
},
"devDependencies": {
"@babel/eslint-parser": "^7.5.4",
"@commitlint/cli": "^19.7.1",
"@commitlint/config-conventional": "^19.7.1",
"eslint": "^8.16.0",
"eslint-config-scratch": "^7.0.0",
"scratch-semantic-release-config": "1.0.8",