Skip to content

relizy / CommitlintConfig

Interface: CommitlintConfig ​

Defined in: packages/relizy/src/types.ts:1752

Properties ​

changelogLinter? ​

optional changelogLinter?: CommitlintChangelogLinter

Defined in: packages/relizy/src/types.ts:1799

Tool checking the changelog entry of a commit, as written in the changelogs (body-changelog-lint): the whole entry with ESLint, its code blocks with oxc.

Default ​

ts
'auto'

customRules? ​

optional customRules?: Record<string, CommitlintCustomRule>

Defined in: packages/relizy/src/types.ts:1775

Rules written as functions, keyed by name. Their level is set in rules and defaults to error.


defaultIgnores? ​

optional defaultIgnores?: boolean

Defined in: packages/relizy/src/types.ts:1786

Ignore merge commits, fixup!, squash! and amend! commits, and the release commits of relizy.

Default ​

ts
true

helpUrl? ​

optional helpUrl?: string

Defined in: packages/relizy/src/types.ts:1803

URL printed with the errors, e.g. the commit guidelines of the team.


ignores? ​

optional ignores?: (RegExp | ((message) => boolean))[]

Defined in: packages/relizy/src/types.ts:1780

Messages to ignore, in addition to the default ones: a regular expression tested against the header, or a function receiving the raw message.


packages? ​

optional packages?: string[]

Defined in: packages/relizy/src/types.ts:1758

Glob patterns of directories to treat as workspace packages for the scopes, in addition to monorepo.packages, e.g. apps that are never released.

Example ​

ts
['apps/*']

rules? ​

optional rules?: CommitlintRulesConfig

Defined in: packages/relizy/src/types.ts:1770

Level and value of the built-in and custom rules.

Example ​

ts
{ 'header-max-length': ['error', 200], 'scope-required': ['error', 'when-bumping'] }

scopes? ​

optional scopes?: string[]

Defined in: packages/relizy/src/types.ts:1765

Scopes allowed in addition to the workspace packages (short name, full name or folder) and the scopeMap keys. In standalone mode, scopes are free unless this list is set.

Example ​

ts
['ci', 'deps', 'release']

title? ​

optional title?: boolean

Defined in: packages/relizy/src/types.ts:1792

In the CI of a pull/merge request, also lint its title, which becomes the commit message of a squash merge. Overridden by --title and --no-title.

Default ​

ts
false