---
url: https://relizy.dev/typedoc/interfaces/CommitlintConfig.md
---
[relizy](../index.md) / CommitlintConfig

# Interface: CommitlintConfig

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

## Properties

### changelogLinter?

> `optional` **changelogLinter?**: [`CommitlintChangelogLinter`](../type-aliases/CommitlintChangelogLinter.md)

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

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`](../type-aliases/CommitlintCustomRule.md)>

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

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:2110](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L2110)

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:2130](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L2130)

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:2104](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L2104)

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:2082](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L2082)

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`](../type-aliases/CommitlintRulesConfig.md)

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

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

#### Example

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

***

### scopes?

> `optional` **scopes?**: `string`\[]

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

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` | [`CommitlintTitleMode`](../type-aliases/CommitlintTitleMode.md)

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

In the CI of a pull/merge request, lint its title, which becomes the
commit message of a squash merge: `'auto'` reads the merge method from
the provider, `'error'` and `'warn'` always lint it at this level, `'off'`
never lints it (see `CommitlintTitleMode`). `true` is `'error'`, `false`
is `'off'`. Overridden by `--title` and `--no-title`.

#### Default

```ts
'auto'
```
