relizy / CommitlintCustomRule
Type Alias: CommitlintCustomRule
CommitlintCustomRule = (
commit,context) =>CommitlintCustomRuleOutcome|Promise<CommitlintCustomRuleOutcome>
Defined in: src/types.ts:1451
A rule written as a function. Returns true when the commit is valid, an error message (or false) otherwise, or a commitlint-style [valid, message?] tuple so commitlint-plugin-function-rules rules can be copied as is.
Parameters
commit
context
Returns
CommitlintCustomRuleOutcome | Promise<CommitlintCustomRuleOutcome>