feat: add commitlint

This commit is contained in:
Mathias Schopmans
2024-02-26 13:58:55 +01:00
committed by Mathias Schopmans
parent 0c38e49b34
commit 9025da3ab8
4 changed files with 1547 additions and 0 deletions

1
.husky/commit-msg Executable file
View File

@@ -0,0 +1 @@
npx --no-install commitlint --edit "$1"

26
commitlint.config.js Normal file
View File

@@ -0,0 +1,26 @@
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [
2,
"always",
[
"feat",
"sec",
"fix",
"bug",
"test",
"refactor",
"rework",
"ops",
"ci",
"cd",
"build",
"doc",
"perf",
"chore",
"update",
],
],
},
};

1518
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -29,6 +29,8 @@
"tsx": "^4.7.1"
},
"devDependencies": {
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.2",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/node": "^20",
"@types/react": "^18",