-
-
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.
feat(git-tools): Added call to
@commitlint/lint
in the commitlint
…
… CLI command
- Loading branch information
1 parent
6964e97
commit 7c10076
Showing
11 changed files
with
272 additions
and
138 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
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
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
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
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
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,31 @@ | ||
import { | ||
DEFAULT_COMMIT_TYPES, | ||
DefaultCommitRulesEnum, | ||
RuleConfigCondition, | ||
RuleConfigSeverity | ||
} from "../types"; | ||
|
||
export const DEFAULT_COMMIT_RULES: DefaultCommitRulesEnum = { | ||
"body-leading-blank": [RuleConfigSeverity.Warning, "always"], | ||
"body-max-length": [RuleConfigSeverity.Error, "always", 600], | ||
"footer-leading-blank": [RuleConfigSeverity.Warning, "always"], | ||
"footer-max-line-length": [RuleConfigSeverity.Error, "always", 150], | ||
"header-max-length": [RuleConfigSeverity.Error, "always", 150], | ||
"header-trim": [RuleConfigSeverity.Error, "always"], | ||
"subject-case": [RuleConfigSeverity.Error, "always", ["sentence-case"]], | ||
"subject-empty": [RuleConfigSeverity.Error, "never"], | ||
"subject-full-stop": [RuleConfigSeverity.Error, "never", "."], | ||
"subject-max-length": [RuleConfigSeverity.Error, "always", 150], | ||
"subject-min-length": [RuleConfigSeverity.Error, "always", 3], | ||
"type-case": [RuleConfigSeverity.Error, "always", "kebab-case"], | ||
"type-empty": [RuleConfigSeverity.Error, "never"], | ||
"type-enum": [ | ||
RuleConfigSeverity.Error, | ||
"always", | ||
Object.keys(DEFAULT_COMMIT_TYPES) | ||
] as [RuleConfigSeverity, RuleConfigCondition, string[]], | ||
"type-max-length": [RuleConfigSeverity.Error, "always", 20], | ||
"type-min-length": [RuleConfigSeverity.Error, "always", 3], | ||
"scope-case": [RuleConfigSeverity.Error, "always", ["kebab-case"]], | ||
"scope-empty": [RuleConfigSeverity.Error, "never"] | ||
}; |
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
Oops, something went wrong.