conventional-changelog/commitlint

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

Geschlossen

#4.119 geöffnet am 10.08.2024

 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (896 Forks)batch import
bughelp wanted

Repository-Metriken

Stars
 (15.497 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 12h 56m) (52 gemergte PRs in 30 T)

Beschreibung

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