diff --git a/.github/commitlint.config.js b/.github/commitlint.config.mjs similarity index 78% rename from .github/commitlint.config.js rename to .github/commitlint.config.mjs index c50801f..c5433ce 100644 --- a/.github/commitlint.config.js +++ b/.github/commitlint.config.mjs @@ -1,7 +1,5 @@ -const Configuration = { - +export default { extends: ['@commitlint/config-conventional'], - /* * Any rules defined here will override rules from @commitlint/config-conventional */ @@ -9,5 +7,3 @@ const Configuration = { 'body-max-line-length': [2, 'always', 200], }, }; - -module.exports = Configuration; diff --git a/.github/workflows/commitlint.yaml b/.github/workflows/commitlint.yaml index ff89eae..447cd8f 100644 --- a/.github/workflows/commitlint.yaml +++ b/.github/workflows/commitlint.yaml @@ -11,4 +11,4 @@ jobs: fetch-depth: 0 - uses: wagoid/commitlint-github-action@v6 with: - configFile: "./.github/commitlint.config.js" + configFile: "./.github/commitlint.config.mjs"