Skip to content

fix: <title> type-enum inside RuleConfigSeverity.Error is not working. #4119

Open
@yagnikvadi2003

Description

@yagnikvadi2003

Steps to Reproduce

import { RuleConfigSeverity, UserConfig } from '@commitlint/types';

const Configuration: UserConfig = {
   rules: {
		"type-enum": [
			RuleConfigSeverity.Error,
			"always",
			[
				// Changes related to the build process or build tools.
				"build",
				// Changes that introduce functional or behavioral modifications.
				"change",

				// Miscellaneous tasks or maintenance chores that don't affect functionality.
				"chore",
                  ]
}

export default Configuration;

Current Behavior

Screenshot from 2024-08-10 18-57-26

Expected Behavior

Screenshot from 2024-08-10 18-58-13

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

No response

Context

No response

commitlint --version

@commitlint/[email protected]

git --version

v2.46.0

node --version

v20.16.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions