Skip to content

Commit

Permalink
build(commitlint): update commitlint config to use .mjs format
Browse files Browse the repository at this point in the history
Changed the commitlint config file to use the .mjs format for better
compatibility.
  • Loading branch information
argoyle committed Apr 25, 2024
1 parent 6dd1cef commit bbd0580
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
const Configuration = {

export default {
extends: ['@commitlint/config-conventional'],

/*
* Any rules defined here will override rules from @commitlint/config-conventional
*/
rules: {
'body-max-line-length': [2, 'always', 200],
},
};

module.exports = Configuration;
2 changes: 1 addition & 1 deletion .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v6
with:
configFile: "./.github/commitlint.config.js"
configFile: "./.github/commitlint.config.mjs"
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ jobs:
files: ./coverage.txt
fail_ci_if_error: true
flags: tests
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

0 comments on commit bbd0580

Please sign in to comment.