Skip to content

Commit

Permalink
chore: commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdehaven committed Apr 25, 2024
1 parent 620058a commit dd051ad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:

- uses: wagoid/[email protected]
with:
configFile: commitlint.config.cjs
configFile: commitlint.config.ts
7 changes: 0 additions & 7 deletions commitlint.config.cjs

This file was deleted.

10 changes: 10 additions & 0 deletions commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export default {
extends: ['@commitlint/config-conventional'],
rules: {
'header-max-length': [2, 'always', 100],
'body-max-line-length': [1, 'always', 150],
'type-case': [2, 'always', 'lower-case'],
'scope-case': [2, 'always', 'lower-case'],
},
ignores: [(message) => /^chore\(release\): .+$/m.test(message)],
}

0 comments on commit dd051ad

Please sign in to comment.