conventional-changelog/commitlint

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

Closed

#4,119 opened on Aug 10, 2024

 (4 comments) (0 reactions) (0 assignees)TypeScript (896 forks)batch import
bughelp wanted

Repository metrics

Stars
 (15,497 stars)
PR merge metrics
 (Avg merge 12h 56m) (52 merged PRs in 30d)

Description

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/cli@19.4.0

git --version

v2.46.0

node --version

v20.16.0

Contributor guide