diff --git a/commitlint.config.js b/commitlint.config.js index 50b8b23bf4..f70916e553 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -4,12 +4,18 @@ const RuleConfigSeverity = { Disabled: 0, Warning: 1, Error: 2, -} +}; module.exports = { extends: ["@commitlint/config-conventional"], // Rules: https://commitlint.js.org/reference/rules.html rules: { - "header-max-length": [RuleConfigSeverity.Error, "always", 150], + "scope-case": [ + RuleConfigSeverity.Error, + "always", + ["lower-case", "kebab-case"], + ], + "scope-empty": [RuleConfigSeverity.Error, "never"], + "header-max-length": [RuleConfigSeverity.Error, "always", 150], }, };