From bbd0580585e2ae1d1be2495069d57579ac660894 Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Thu, 25 Apr 2024 09:03:43 +0200 Subject: [PATCH] build(commitlint): update commitlint config to use .mjs format Changed the commitlint config file to use the .mjs format for better compatibility. --- .github/{commitlint.config.js => commitlint.config.mjs} | 6 +----- .github/workflows/commitlint.yaml | 2 +- .github/workflows/tests.yml | 1 + 3 files changed, 3 insertions(+), 6 deletions(-) rename .github/{commitlint.config.js => commitlint.config.mjs} (78%) 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 d0a9d73..5ee7050 100644 --- a/.github/workflows/commitlint.yaml +++ b/.github/workflows/commitlint.yaml @@ -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" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a0f319f..2a0c55f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,4 +35,5 @@ jobs: files: ./coverage.txt fail_ci_if_error: true flags: tests + token: ${{ secrets.CODECOV_TOKEN }} verbose: true