Skip to content

fix(config): validate languages from shared registry#265

Open
okbexx wants to merge 1 commit into
colbymchenry:mainfrom
okbexx:fix/config-supported-languages
Open

fix(config): validate languages from shared registry#265
okbexx wants to merge 1 commit into
colbymchenry:mainfrom
okbexx:fix/config-supported-languages

Conversation

@okbexx
Copy link
Copy Markdown

@okbexx okbexx commented May 21, 2026

Summary

  • replace the stale hard-coded language allowlist in validateConfig with the shared LANGUAGES registry
  • add regression coverage that every registered language validates and unknown languages are still rejected

Why

LANGUAGES already includes languages such as tsx, jsx, c, cpp, csharp, vue, liquid, pascal, and scala, but validateConfig had a smaller local allowlist. A user config that explicitly listed one of those supported languages could be rejected as invalid.

Test plan

  • npm test -- --run __tests__/foundation.test.ts -t "supported language|unknown languages"
  • npm test -- --run __tests__/foundation.test.ts
  • npm run build
  • npm test

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.

1 participant