Skip to content

fix: config.parserPreset.presetConfig unknown field #4748

@Ezall2001

Description

@Ezall2001

Steps to Reproduce

use typescript with the following config

let config: UserConfig = {
	extends: [],
	parserPreset: {
		name: 'conventional-changelog-conventionalcommits',
		presetConfig: {
			types: [
				{ type: 'feat', section: 'Features' },
				{ type: 'fix', section: 'Bug Fixes' },
				{ type: 'docs', section: 'Documentation', hidden: false },
				{ type: 'chore', hidden: true },
			],
		},
	},
	formatter: '@commitlint/format',
	rules: rules,
	ignores: [],
	defaultIgnores: true,
}

Current Behavior

type error.

Expected Behavior

to be typed or update documentation if the name changed

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

No response

Context

when using typescipt config

commitlint --version

@commitlint/cli@20.5.3

git --version

git version 2.54.0

node --version

v22.22.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions