Skip to content

fix(config): assign the commitlint config to a variable before export - #242

Open
CodeByPeace wants to merge 1 commit into
O2sa:mainfrom
CodeByPeace:fix/commitlint-anonymous-export-241
Open

CodeByPeace wants to merge 1 commit into
O2sa:mainfrom
CodeByPeace:fix/commitlint-anonymous-export-241

Conversation

@CodeByPeace

Copy link
Copy Markdown
Contributor

Fixes #241

Additionally, at the time of submission of this PR:

The referred issue is not blocked currently
All unittests passed after changes were made

What was wrong. commitlint.config.mjs exported its config object directly, so pnpm lint showed the import/no-anonymous-default-export warning.

What changed. The object is now assigned to a constant named Configuration, and the file exports that. The extends and rules are exactly as before.

How I tested. Before the change, pnpm lint showed 2 warnings, one of them in commitlint.config.mjs. After the change it shows 1, and the one in this file is gone. format:check and tsc pass, and the full test suite passes. I also ran commitlint by hand. A good message exits 0 and a bad one exits 1 with errors, so commit message validation still works.

Left alone. The other warning, an img tag in leaderboard-table.test.tsx, is a different file and not part of this issue.

AI use: written with Claude Sonnet 5.5. I ran and checked every command and test myself.

@vercel

vercel Bot commented Oct 12, 2026

Copy link
Copy Markdown

@CodeByPeace is attempting to deploy a commit to the osama's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown

Thank you for the pull request! ✅

A maintainer will review this soon. Please be patient while we take a look. 🙌

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: Assign configuration object before export in commitlint.config.mjs

1 participant