Skip to content

Commit

Permalink
test(commitlint): Add exception for release commits
Browse files Browse the repository at this point in the history
  • Loading branch information
matz3 committed Mar 13, 2024
1 parent db1ba37 commit f36db6e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 30 deletions.
34 changes: 34 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
export default {
extends: [
"@commitlint/config-conventional",
],
rules: {
"type-enum": [
2,
"always",
[
"build",
"ci",
"deps",
"docs",
"feat",
"fix",
"perf",
"refactor",
"release",
"revert",
"style",
"test",
],
],
"body-max-line-length": [2, "always", 160],
"subject-case": [
2, "always",
["sentence-case", "start-case", "pascal-case"],
],
},
ignores: [
// Ignore release commits, as their subject doesn't start with an uppercase letter
(message) => message.startsWith("release: v"),
],
};
30 changes: 0 additions & 30 deletions .commitlintrc.json

This file was deleted.

0 comments on commit f36db6e

Please sign in to comment.