Skip to content

Commit

Permalink
chore: update commitlint config
Browse files Browse the repository at this point in the history
Updated commitlint config to match Ratkaisutoimisto's new conventions:

* added `deps` as an allowed commit type
* started using JSON config file `.commitlintrc.json` instead of
  Javascript `commitlint.config.js`
  • Loading branch information
tuomas777 committed Mar 26, 2024
1 parent a0fc536 commit 492d979
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 10 deletions.
39 changes: 39 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"header-max-length": [
2,
"always",
72
],
"body-max-line-length": [
2,
"always",
72
],
"body-leading-blank": [
2,
"always"
],
"type-enum": [
2,
"always",
[
"build",
"chore",
"ci",
"deps",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test"
]
]
}
}
10 changes: 0 additions & 10 deletions commitlint.config.js

This file was deleted.

0 comments on commit 492d979

Please sign in to comment.