My preferred commitlint config.

Usage no npm install needed!

<script type="module">
  import alanscodelogCommitlintConfig from 'https://cdn.skypack.dev/@alanscodelog/commitlint-config';



My preferred commitlint config.

It matches the @commitlint/config-conventional config pretty closely, except the types are extracted straight from my semantic release config @alanscodelog/semantic-release-config (which should be installed as a peer dependency) and the max header length is set to 100 (and that is only set to warn).


yarn add -D @alanscodelog/commitlint-config @alanscodelog/semantic-release-config
// package.json
    "commitlint": { "extends": [ "@alanscodelog/commitlint-config" ] },
    // OR
    "commitlint": { "extends": [ "@alanscodelog" ] },