---
url: https://relizy.dev/typedoc/type-aliases/CommitlintCustomRule.md
---
[relizy](../index.md) / CommitlintCustomRule

# Type Alias: CommitlintCustomRule

> **CommitlintCustomRule** = `CoreCommitlintCustomRule`<[`ResolvedRelizyConfig`](ResolvedRelizyConfig.md)>

Defined in: [packages/relizy/src/types.ts:2074](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L2074)

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. It
receives the resolved relizy config in its context.
