From cd9846b857f915e2c47f7de00770778add6a35da Mon Sep 17 00:00:00 2001 From: francy51 Date: Tue, 16 Jun 2026 18:25:40 -0400 Subject: [PATCH] chore(commitlint): convert config to ESM for module project MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The root package.json sets "type": "module", so Node treated commitlint.config.js as ESM and threw "module is not defined" when loading the CommonJS module.exports — the config never applied. Switch to `export default` so the conventional filename stays valid and the rules are actually enforced by the CLI. --- commitlint.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commitlint.config.js b/commitlint.config.js index 4761a37..7ebd45c 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1,4 +1,4 @@ -module.exports = { +export default { extends: ['@commitlint/config-conventional'], rules: { // Enforce conventional commit types