Skip to content

Commit

Permalink
feat(commitlint): add new rules for scope (#2319)
Browse files Browse the repository at this point in the history
  • Loading branch information
skamril authored Jan 28, 2025
1 parent f213a26 commit e494f20
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
},
};

0 comments on commit e494f20

Please sign in to comment.