"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __commonJS = (cb, mod) => function __require() {
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));

// node_modules/@commitlint/types/lib/ensure.js
var require_ensure = __commonJS({
  "node_modules/@commitlint/types/lib/ensure.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
  }
});

// node_modules/@commitlint/types/lib/format.js
var require_format = __commonJS({
  "node_modules/@commitlint/types/lib/format.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
  }
});

// node_modules/@commitlint/types/lib/is-ignored.js
var require_is_ignored = __commonJS({
  "node_modules/@commitlint/types/lib/is-ignored.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
  }
});

// node_modules/@commitlint/types/lib/lint.js
var require_lint = __commonJS({
  "node_modules/@commitlint/types/lib/lint.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
  }
});

// node_modules/@commitlint/types/lib/load.js
var require_load = __commonJS({
  "node_modules/@commitlint/types/lib/load.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
  }
});

// node_modules/@commitlint/types/lib/parse.js
var require_parse = __commonJS({
  "node_modules/@commitlint/types/lib/parse.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
  }
});

// node_modules/@commitlint/types/lib/prompt.js
var require_prompt = __commonJS({
  "node_modules/@commitlint/types/lib/prompt.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
  }
});

// node_modules/@commitlint/types/lib/rules.js
var require_rules = __commonJS({
  "node_modules/@commitlint/types/lib/rules.js"(exports2) {
    "use strict";
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.RuleConfigQuality = exports2.RuleConfigSeverity = void 0;
    var RuleConfigSeverity;
    (function(RuleConfigSeverity2) {
      RuleConfigSeverity2[RuleConfigSeverity2["Disabled"] = 0] = "Disabled";
      RuleConfigSeverity2[RuleConfigSeverity2["Warning"] = 1] = "Warning";
      RuleConfigSeverity2[RuleConfigSeverity2["Error"] = 2] = "Error";
    })(RuleConfigSeverity || (exports2.RuleConfigSeverity = RuleConfigSeverity = {}));
    var RuleConfigQuality;
    (function(RuleConfigQuality2) {
      RuleConfigQuality2[RuleConfigQuality2["User"] = 0] = "User";
      RuleConfigQuality2[RuleConfigQuality2["Qualified"] = 1] = "Qualified";
    })(RuleConfigQuality || (exports2.RuleConfigQuality = RuleConfigQuality = {}));
  }
});

// node_modules/@commitlint/types/lib/index.js
var require_lib = __commonJS({
  "node_modules/@commitlint/types/lib/index.js"(exports2) {
    "use strict";
    var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
      if (k2 === void 0)
        k2 = k;
      var desc = Object.getOwnPropertyDescriptor(m, k);
      if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: function() {
          return m[k];
        } };
      }
      Object.defineProperty(o, k2, desc);
    } : function(o, m, k, k2) {
      if (k2 === void 0)
        k2 = k;
      o[k2] = m[k];
    });
    var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
      for (var p in m)
        if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
          __createBinding(exports3, m, p);
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    __exportStar(require_ensure(), exports2);
    __exportStar(require_format(), exports2);
    __exportStar(require_is_ignored(), exports2);
    __exportStar(require_lint(), exports2);
    __exportStar(require_load(), exports2);
    __exportStar(require_parse(), exports2);
    __exportStar(require_prompt(), exports2);
    __exportStar(require_rules(), exports2);
  }
});

// node_modules/@commitlint/config-conventional/lib/index.js
var require_lib2 = __commonJS({
  "node_modules/@commitlint/config-conventional/lib/index.js"(exports2, module2) {
    "use strict";
    var types_1 = require_lib();
    module2.exports = {
      parserPreset: "conventional-changelog-conventionalcommits",
      rules: {
        "body-leading-blank": [types_1.RuleConfigSeverity.Warning, "always"],
        "body-max-line-length": [types_1.RuleConfigSeverity.Error, "always", 100],
        "footer-leading-blank": [types_1.RuleConfigSeverity.Warning, "always"],
        "footer-max-line-length": [
          types_1.RuleConfigSeverity.Error,
          "always",
          100
        ],
        "header-max-length": [types_1.RuleConfigSeverity.Error, "always", 100],
        "header-trim": [types_1.RuleConfigSeverity.Error, "always"],
        "subject-case": [
          types_1.RuleConfigSeverity.Error,
          "never",
          ["sentence-case", "start-case", "pascal-case", "upper-case"]
        ],
        "subject-empty": [types_1.RuleConfigSeverity.Error, "never"],
        "subject-full-stop": [types_1.RuleConfigSeverity.Error, "never", "."],
        "type-case": [types_1.RuleConfigSeverity.Error, "always", "lower-case"],
        "type-empty": [types_1.RuleConfigSeverity.Error, "never"],
        "type-enum": [
          types_1.RuleConfigSeverity.Error,
          "always",
          [
            "build",
            "chore",
            "ci",
            "docs",
            "feat",
            "fix",
            "perf",
            "refactor",
            "revert",
            "style",
            "test"
          ]
        ]
      },
      prompt: {
        questions: {
          type: {
            description: "Select the type of change that you're committing",
            enum: {
              feat: {
                description: "A new feature",
                title: "Features",
                emoji: "\u2728"
              },
              fix: {
                description: "A bug fix",
                title: "Bug Fixes",
                emoji: "\u{1F41B}"
              },
              docs: {
                description: "Documentation only changes",
                title: "Documentation",
                emoji: "\u{1F4DA}"
              },
              style: {
                description: "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
                title: "Styles",
                emoji: "\u{1F48E}"
              },
              refactor: {
                description: "A code change that neither fixes a bug nor adds a feature",
                title: "Code Refactoring",
                emoji: "\u{1F4E6}"
              },
              perf: {
                description: "A code change that improves performance",
                title: "Performance Improvements",
                emoji: "\u{1F680}"
              },
              test: {
                description: "Adding missing tests or correcting existing tests",
                title: "Tests",
                emoji: "\u{1F6A8}"
              },
              build: {
                description: "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)",
                title: "Builds",
                emoji: "\u{1F6E0}"
              },
              ci: {
                description: "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)",
                title: "Continuous Integrations",
                emoji: "\u2699\uFE0F"
              },
              chore: {
                description: "Other changes that don't modify src or test files",
                title: "Chores",
                emoji: "\u267B\uFE0F"
              },
              revert: {
                description: "Reverts a previous commit",
                title: "Reverts",
                emoji: "\u{1F5D1}"
              }
            }
          },
          scope: {
            description: "What is the scope of this change (e.g. component or file name)"
          },
          subject: {
            description: "Write a short, imperative tense description of the change"
          },
          body: {
            description: "Provide a longer description of the change"
          },
          isBreaking: {
            description: "Are there any breaking changes?"
          },
          breakingBody: {
            description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself"
          },
          breaking: {
            description: "Describe the breaking changes"
          },
          isIssueAffected: {
            description: "Does this change affect any open issues?"
          },
          issuesBody: {
            description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself"
          },
          issues: {
            description: 'Add issue references (e.g. "fix #123", "re #123".)'
          }
        }
      }
    };
  }
});

// src/config.ts
var import_node_path = __toESM(require("node:path"));
var import_node_util = require("node:util");
var preset = require_lib2();
var distDir = __dirname;
var config = {
  ...preset,
  parserPreset: import_node_path.default.join(distDir, "parser-preset.js"),
  formatter: import_node_path.default.join(distDir, "formatter.js"),
  rules: {
    ...preset.rules,
    "header-max-length": [2, "always", 120]
  }
};
if (require.main === module) {
  const prettyConfig = (0, import_node_util.inspect)(config, {
    colors: process.stdout.isTTY,
    depth: 8
  });
  console.log(prettyConfig);
}
module.exports = config;
