Skip to content

fix: make npm run typecheck pass under TypeScript 7 - #62

Merged
atherdon merged 1 commit into
mainfrom
fix/typecheck-tsx-errors
Oct 31, 2026
Merged

atherdon merged 1 commit into
mainfrom
fix/typecheck-tsx-errors

Conversation

@atherdon

Copy link
Copy Markdown

Summary

Minimal TypeScript fixes so npm run typecheck passes with the TS 7 / #58-style tsconfig (no content/copy changes).

Changes

  • tsconfig.json — inline compiler options (TS 7 rejects baseUrl from @docusaurus/tsconfig)
  • docusaurus.config.js — type local-search theme as PluginConfig
  • src/pages/* — import type {JSX} from 'react'; replace removed useBaseUrl(..., {locale}) with /uk/docs/getting-started

Merge order

Land before #58 (typecheck adopter). #58 will be rebased onto this branch so it only needs the workflow.

Test plan

  • npm run typecheck clean
  • test-deploy still green

@github-actions

Copy link
Copy Markdown

Thanks for the contribution! 🙌 If you find this list useful, could you give the repository a ⭐ star? It really helps us keep it growing.

@atherdon
atherdon force-pushed the fix/typecheck-tsx-errors branch from 41e05e9 to 8a9f4e2 Compare October 31, 2026 07:59
- Inline tsconfig (drop @docusaurus/tsconfig baseUrl, removed in TS 7)
- Type search theme entry as PluginConfig
- Import JSX namespace from react in page components
- Drop removed useBaseUrl locale option (was already a no-op at runtime)

Co-authored-by: petroved <[email protected]>
@atherdon
atherdon force-pushed the fix/typecheck-tsx-errors branch from d1496e3 to fb0558c Compare October 31, 2026 08:06
@atherdon
atherdon marked this pull request as ready for review October 31, 2026 08:09
@atherdon
atherdon merged commit ac10401 into main Oct 31, 2026
1 check passed
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