The API of your configuration could use some work. Have you looked at the validations present in JSON Schema[1]?<p>Instead of<p><pre><code>  {
    &quot;commit&quot;: {
      &quot;message_must_be_imperative_tense&quot;: true,
      &quot;message_must_include_prefix&quot;: {
        &quot;prefixes&quot;: [&quot;feat&quot;, &quot;fix&quot;, &quot;docs&quot;, &quot;refactor&quot;],
        &quot;require_after_prefix&quot;: &quot; &quot;
      }
    }
  }

</code></pre>
Something like:<p><pre><code>  {
    &quot;commit&quot;: {
      &quot;message&quot;: {
        &quot;imperative&quot;: true,
        &quot;prefixes&quot;: [&quot;feat &quot;, &quot;fix &quot;, &quot;docs &quot;, &quot;refactor &quot;]
      }
    }
  }
</code></pre>
[1] <a href="http:&#x2F;&#x2F;json-schema.org&#x2F;latest&#x2F;json-schema-validation.html" rel="nofollow">http:&#x2F;&#x2F;json-schema.org&#x2F;latest&#x2F;json-schema-validation.html</a>