vivaxy / vscode-conventional-commits

💬Conventional Commits for VSCode.
https://marketplace.visualstudio.com/items?itemName=vivaxy.vscode-conventional-commits
MIT License
309 stars 32 forks source link

[QUESTION] #317

Open rexkenley opened 1 year ago

rexkenley commented 1 year ago

I have this configuration .commitlintrc.json

{
  "extends": ["@commitlint/config-conventional"],
  "rules": {
    "scope-empty": [2, "always"],
    "scope-enum":  [2, "always", ["a", "b", "c"]],
    "subject-case": [
      2,
      "never",
      [
        "lower-case",
        "upper-case",
        "camel-case",
        "kebab-case",
        "pascal-case",
        "snake-case",
        "start-case"
      ]
    ],
    "subject-max-length": [2, "always", 72]
  }
}

How do I make the vscode extension display the values of the scope-enum(a,b,c)?

yi-Xu-0100 commented 1 year ago

@rexkenley Sorry for the late reply, please check the output of the conventional commits.

Make sure the @commitlint/config-conventional is in your repo/node_modules.

rexkenley commented 1 year ago

How do I check for the output? I know you can add areas into the vs code settings.json, but we .gitignore that file. Is there another way to store the "official areas" of the project?

Yes it is image

plbstl commented 11 months ago

@rexkenley i think this is what @yi-Xu-0100 meant by output

Screenshot 2023-08-15 at 11 05 24