Skip to content

Commit

Permalink
chore: add commitlint config
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Sep 17, 2022
1 parent 90695c8 commit bdfb873
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
fetch-depth: 0
- uses: volta-cli/action@v1
- uses: wagoid/[email protected]
with:
configFile: 'commitlint.config.cjs'

types_library:
name: "Types: Library"
Expand Down
18 changes: 18 additions & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use strict';

module.exports = {
extends: ['@commitlint/config-conventional'],
// https://commitlint.js.org/#/reference-rules
// Level [0..2]: 0 disables the rule. For 1 it will be considered a warning for 2 an error.
// Applicable always|never: never inverts the rule.
// Value: value to use for this rule.
rules: {
// 72, the default, is a little short
'header-max-length': [1, 'always', 100],
// Let people use caps
'header-case': [0],
// Let people write sentences
'header-full-stop': [0],
'subject-case': [0],
},
};

0 comments on commit bdfb873

Please sign in to comment.