Skip to content

Commit

Permalink
Merge pull request #402 from modularcloud/fredkiss3/fe-100-enforce-gi…
Browse files Browse the repository at this point in the history
…tmoji

Enforce Gitmoji for commits messages
  • Loading branch information
lzrscg authored Feb 22, 2024
2 parents 413e59b + 2dc3fd0 commit 3cafe25
Show file tree
Hide file tree
Showing 4 changed files with 1,401 additions and 1,407 deletions.
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run commitlint ${1}
13 changes: 13 additions & 0 deletions commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { UserConfig } from "@commitlint/types";
import { RuleConfigSeverity } from "@commitlint/types";

const Configuration: UserConfig = {
extends: ["gitmoji"],
rules: {
"type-empty": [RuleConfigSeverity.Disabled],
"subject-empty": [RuleConfigSeverity.Disabled],
// require a message after the gitmoji
"header-min-length": [RuleConfigSeverity.Error, "always", 5],
},
};
module.exports = Configuration;
Loading

0 comments on commit 3cafe25

Please sign in to comment.