Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] #317

Open
rexkenley opened this issue May 18, 2023 · 3 comments
Open

[QUESTION] #317

rexkenley opened this issue May 18, 2023 · 3 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@rexkenley
Copy link

rexkenley commented May 18, 2023

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)?

@rexkenley rexkenley added the help wanted Extra attention is needed label May 18, 2023
@yi-Xu-0100
Copy link
Collaborator

yi-Xu-0100 commented May 26, 2023

@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
Copy link
Author

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
Copy link

plbstl commented Aug 15, 2023

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

Screenshot 2023-08-15 at 11 05 24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants