Skip to content

Commit

Permalink
chore: add default configs to lint PR titles
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarmos-san committed Nov 8, 2023
1 parent 83d9652 commit 029bb64
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { UserConfig } from "@commitlint/types";

// INFO: These are the default configurations provided by the Action
const config: UserConfig = {
rules: {
"header-max-length": [2, "always", 72],
"body-empty": [2, "always"],
"type-enum": [
2,
"always",
[
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test"
]
],
"type-case": [2, "always", "lowercase"],
"type-empty": [2, "always"]
}
};

export default config;

0 comments on commit 029bb64

Please sign in to comment.