fix: add vitest.config.ts to eslint allowDefaultProject (#440 build fix) #441

Merged
jason.woltje merged 1 commits from fix/build-vitest-allowdefault into main 2026-04-05 22:01:58 +00:00
Owner

Follow-up to #440. The initial hotfix commit added unplugin-swc to vitest.config.ts for decorator metadata support, then temporarily included vitest.config.ts in tsconfig.json to fix ESLint linting. That inclusion broke the build because vitest.config.ts is outside rootDir: src. This commit:\n\n- Reverts the tsconfig.json include change\n- Adds apps/gateway/vitest.config.ts to ESLint allowDefaultProject list instead\n\nAll three gates (typecheck, lint, format:check) and the full test suite pass.\n\n🤖 Generated with Claude Code

Follow-up to #440. The initial hotfix commit added `unplugin-swc` to `vitest.config.ts` for decorator metadata support, then temporarily included `vitest.config.ts` in `tsconfig.json` to fix ESLint linting. That inclusion broke the build because `vitest.config.ts` is outside `rootDir: src`. This commit:\n\n- Reverts the `tsconfig.json` include change\n- Adds `apps/gateway/vitest.config.ts` to ESLint `allowDefaultProject` list instead\n\nAll three gates (typecheck, lint, format:check) and the full test suite pass.\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)
jason.woltje added 1 commit 2026-04-05 21:58:10 +00:00
fix: add vitest.config.ts to eslint allowDefaultProject, revert tsconfig include
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
eeb39cfc0a
vitest.config.ts is not under apps/gateway/src (rootDir), so including
it in tsconfig.json broke the build. Instead, add it to the
eslint allowDefaultProject list so the typescript-eslint parser can
lint it without being covered by the project tsconfig.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jason.woltje merged commit c08aa6fa46 into main 2026-04-05 22:01:58 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#441