Skip to content

relizy / CommitlintBuiltInRules

Interface: CommitlintBuiltInRules ​

Defined in: packages/core/src/commitlint/types.ts:25

The built-in rules of relizy commitlint, with the type of their value (never when the rule has no value).

See ​

https://relizy.dev/commitlint/rules

Properties ​

body-breaking-change ​

body-breaking-change: never

Defined in: packages/core/src/commitlint/types.ts:98

A breaking change is only declared with ! in the header or a BREAKING CHANGE: footer, as relizy bumps the major version wherever breaking change: appears.

Default ​

ts
'error'

body-changelog-lint ​

body-changelog-lint: never

Defined in: packages/core/src/commitlint/types.ts:92

The commit, rendered as in the changelogs, passes the lint of the changelogs.

Default ​

ts
'error'

body-leading-blank ​

body-leading-blank: never

Defined in: packages/core/src/commitlint/types.ts:77

A blank line separates the header from the body.

Default ​

ts
'error'

body-markdown ​

body-markdown: never

Defined in: packages/core/src/commitlint/types.ts:87

The markdown of the body is valid: code blocks closed, links with a URL.

Default ​

ts
'error'

body-no-headings ​

body-no-headings: never

Defined in: packages/core/src/commitlint/types.ts:82

The body has no markdown headings, which would break the changelog.

Default ​

ts
'error'

header-format ​

header-format: never

Defined in: packages/core/src/commitlint/types.ts:30

The header follows type(scope)!: subject.

Default ​

ts
'error'

header-max-length ​

header-max-length: number

Defined in: packages/core/src/commitlint/types.ts:35

Maximum length of the header.

Default ​

ts
['error', 500]

no-ai-attribution ​

no-ai-attribution: object

Defined in: packages/core/src/commitlint/types.ts:110

The message does not credit an AI tool: no AI co-author (Co-authored-by: Claude <[email protected]>), no session trailer (Claude-Session:), no "Generated with" line. The value adds names or emails of AI authors (matched as substrings) and trailers.

authors? ​

optional authors?: string[]

trailers? ​

optional trailers?: string[]

Default ​

ts
'error'

no-breaking ​

no-breaking: never

Defined in: packages/core/src/commitlint/types.ts:103

Breaking changes are not allowed.

Default ​

ts
'off'

scope-enum ​

scope-enum: never

Defined in: packages/core/src/commitlint/types.ts:45

The scope is a workspace package, a scopeMap key or one of commitlint.scopes.

Default ​

ts
'error'

scope-matches-files ​

scope-matches-files: never

Defined in: packages/core/src/commitlint/types.ts:56

The scope designates a package touched by the commit.

Default ​

ts
'error'

scope-required ​

scope-required: "never" | "always" | "when-bumping"

Defined in: packages/core/src/commitlint/types.ts:51

The scope is required ('always'), forbidden ('never'), or required on the commits bumping a version ('when-bumping').

Default ​

ts
['off', 'always']

subject-case ​

subject-case: never

Defined in: packages/core/src/commitlint/types.ts:62

The subject starts with a lowercase letter. Off by default: the changelog capitalizes the subject anyway.

Default ​

ts
'off'

subject-full-stop ​

subject-full-stop: never

Defined in: packages/core/src/commitlint/types.ts:67

The subject does not end with a period.

Default ​

ts
'error'

subject-meaningful ​

subject-meaningful: object

Defined in: packages/core/src/commitlint/types.ts:72

The subject describes the change, with a minimum of words or characters.

minLength? ​

optional minLength?: number

minWords? ​

optional minWords?: number

Default ​

ts
['error', { minWords: 2, minLength: 15 }]

type-enum ​

type-enum: string[]

Defined in: packages/core/src/commitlint/types.ts:40

The type is one of the relizy types, or one of the extra types given as value.

Default ​

ts
'error'