commitlint icon indicating copy to clipboard operation
commitlint copied to clipboard

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

Open yagnikvadi2003 opened this issue 6 months ago • 4 comments

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

  • [X] cli
  • [ ] core
  • [X] 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

yagnikvadi2003 avatar Aug 10 '24 13:08 yagnikvadi2003