chore: add commitlint

This commit is contained in:
Christopher Willis-Ford 2023-12-20 19:05:00 -08:00
parent 34ac8e2fe3
commit 20bf634928
4 changed files with 3180 additions and 15 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):')]
};

3177
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -24,6 +24,8 @@
"watch": "webpack --progress --colors --watch --watch-poll"
},
"devDependencies": {
"@commitlint/cli": "18.4.3",
"@commitlint/config-conventional": "18.4.3",
"babel-core": "6.26.3",
"babel-eslint": "10.1.0",
"babel-loader": "7.1.5",