@storm-software/git-tools
Version:
Tools for managing Git repositories within a Nx workspace.
126 lines (119 loc) • 2.71 kB
JavaScript
;Object.defineProperty(exports, "__esModule", {value: true});
var _chunkL2C6A3XVcjs = require('../chunk-L2C6A3XV.cjs');
// src/commitlint/config.ts
var DEFAULT_COMMIT_RULES = {
"body-leading-blank": [
_chunkL2C6A3XVcjs.RuleConfigSeverity.Warning,
"always"
],
"body-max-length": [
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
"always",
600
],
"footer-leading-blank": [
_chunkL2C6A3XVcjs.RuleConfigSeverity.Warning,
"always"
],
"footer-max-line-length": [
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
"always",
150
],
"header-max-length": [
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
"always",
150
],
"header-trim": [
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
"always"
],
"subject-case": [
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
"always",
[
"sentence-case"
]
],
"subject-empty": [
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
"never"
],
"subject-full-stop": [
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
"never",
"."
],
"subject-max-length": [
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
"always",
150
],
"subject-min-length": [
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
"always",
3
],
"type-case": [
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
"always",
"kebab-case"
],
"type-empty": [
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
"never"
],
"type-enum": [
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
"always",
Object.keys(_chunkL2C6A3XVcjs.DEFAULT_COMMIT_TYPES)
],
"type-max-length": [
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
"always",
20
],
"type-min-length": [
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
"always",
3
],
"scope-case": [
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
"always",
[
"kebab-case"
]
],
"scope-empty": [
_chunkL2C6A3XVcjs.RuleConfigSeverity.Error,
"never"
]
};
var DEFAULT_COMMITLINT_CONFIG = {
rules: DEFAULT_COMMIT_RULES,
helpUrl: "https://stormsoftware.com/ops/commitlint",
parserOpts: {
headerPattern: /^(\w*)(?:\((.*)\))?!?: (.*)$/,
breakingHeaderPattern: /^(\w*)(?:\((.*)\))?!: (.*)$/,
headerCorrespondence: [
"type",
"scope",
"subject"
],
noteKeywords: [
"BREAKING CHANGE",
"BREAKING-CHANGE"
],
revertPattern: /^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i,
revertCorrespondence: [
"header",
"hash"
],
issuePrefixes: [
"#"
]
}
};
exports.DEFAULT_COMMITLINT_CONFIG = DEFAULT_COMMITLINT_CONFIG; exports.DEFAULT_COMMIT_RULES = DEFAULT_COMMIT_RULES;