Skip to content

Commit

Permalink
chore: fix config for commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
immortal-tofu committed Feb 13, 2024
1 parent 91463e0 commit d7c3656
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/config/commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
module.exports = { extends: ["@commitlint/config-conventional"] };
const RuleConfigSeverity = require("@commitlint/types").RuleConfigSeverity;
const Configuration = {
/*
* Resolve and load @commitlint/config-conventional from node_modules.
* Referenced packages must be installed
*/
extends: ["@commitlint/config-conventional"],
/*
* Resolve and load conventional-changelog-atom from node_modules.
* Referenced packages must be installed
*/
parserPreset: "conventional-changelog-conventionalcommits",
/*
* Resolve and load @commitlint/format from node_modules.
* Referenced package must be installed
*/
formatter: "@commitlint/format",
/*
* Any rules defined here will override rules from @commitlint/config-conventional
*/
rules: {
"type-empty": [RuleConfigSeverity.Error, "never"],
},
};

module.exports = Configuration;

0 comments on commit d7c3656

Please sign in to comment.