chore: add commitlint

This commit is contained in:
Christopher Willis-Ford 2023-12-20 11:10:27 -08:00
parent 73af501d53
commit c39080afdc
4 changed files with 1925 additions and 1 deletions

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

@ -0,0 +1,12 @@
name: Lint commit messages
on: [pull_request]
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.sha }}"
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: wagoid/commitlint-github-action@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):')]
};

1908
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -32,6 +32,8 @@
"transformation-matrix": "1.15.0"
},
"devDependencies": {
"@commitlint/cli": "18.4.3",
"@commitlint/config-conventional": "18.4.3",
"babel-core": "6.26.0",
"babel-eslint": "^10.1.0",
"babel-loader": "7.1.5",