conventional-changelog / commitlint

📓 Lint commit messages
https://commitlint.js.org
MIT License
16.94k stars 912 forks source link

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

Open yagnikvadi2003 opened 3 months ago

yagnikvadi2003 commented 3 months ago

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

Possible Solution

No response

Context

No response

commitlint --version

@commitlint/cli@19.4.0

git --version

v2.46.0

node --version

v20.16.0

knocte commented 3 months ago

@yagnikvadi2003 hey, in your section "Steps to reproduce" I don't see any steps, I only see your config. Can you please be explicit about how you are reproducing the bug please?

knocte commented 3 months ago

BTW, your config file looks like it's missing a closing curly brace?

yagnikvadi2003 commented 3 months ago

Now Done process. Console cache problem.

knocte commented 3 months ago

Now Done process. Console cache problem.

I'm unable to understand what you mean with this text above.