-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add default configs to lint PR titles
- Loading branch information
1 parent
83d9652
commit 029bb64
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |