module.exports = {
  extends: ["@commitlint/config-angular"], // Extends with the Angular commitlint configuration
  rules: {
    "type-enum": [
      2,
      "always",
      [
        "feat",
        "fix",
        "docs",
        "style",
        "refactor",
        "perf",
        "test",
        "build",
        "ci",
        "chore",
        "revert", // Add or remove types as needed
      ],
    ],
    "type-case": [2, "always", "lower-case"], // Type must be in lower case
    "type-empty": [2, "never"], // Type must not be empty
    "scope-case": [2, "always", "lower-case"], // Scope must be in lower case
    "subject-empty": [2, "never"], // Subject must not be empty
    "subject-case": [2, "never", []], // Subject must be in sentence case
    "subject-full-stop": [2, "never", "."], // Subject must not end with a period
    "header-max-length": [2, "always", 100], // Header must not exceed 100 characters
  },
};
