Skip to content

feat: bootstrap TypeScript#57

Merged
mjdavidson merged 1 commit into
masterfrom
mattd/explore-ts-bootstrap
May 7, 2026
Merged

feat: bootstrap TypeScript#57
mjdavidson merged 1 commit into
masterfrom
mattd/explore-ts-bootstrap

Conversation

@mjdavidson
Copy link
Copy Markdown
Contributor

Sets up the toolchain for an incremental TS migration. No source files converted in this PR — those follow leaf-first in subsequent PRs.

tsconfig.json strictness matches our other repos: strict, noFallthroughCasesInSwitch, noImplicitOverride, noUncheckedIndexedAccess, noUnusedLocals, noUnusedParameters. allowJs is on so tsc can partially check still-JS files during migration; Next auto-adds it on build either way.

A typecheck script (tsc --noEmit) is added and wired into ci.yml. next-env.d.ts is added to oxlint's ignorePatterns since its triple-slash references conflict with the lint rule. *.tsbuildinfo added to .gitignore.

Sets up the toolchain for an incremental TS migration. No source
files converted in this PR — those follow leaf-first.

Adds:
- tsconfig.json with the same strictness as our other repos:
  strict, noFallthroughCasesInSwitch, noImplicitOverride,
  noUncheckedIndexedAccess, noUnusedLocals, noUnusedParameters.
  Also Next.js conventions (jsx: preserve, plugins: [next], paths,
  isolatedModules, incremental). allowJs is on so tsc can partially
  check the still-JS files during migration; Next auto-adds it
  on build either way.
- typescript, @types/node, @types/react, @types/react-dom devDeps.
- A `typecheck` script (`tsc --noEmit`) and a step in ci.yml.
- next-env.d.ts (Next-generated, don't edit).
- *.tsbuildinfo to .gitignore.
- ignorePatterns in .oxlintrc.json so oxlint skips next-env.d.ts
  (Next's triple-slash references conflict with the lint rule).

Verified: lint, typecheck, format:check, and build all pass.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
explore Ready Ready Preview, Comment May 7, 2026 9:06pm

Request Review

@mjdavidson mjdavidson merged commit 50de0bb into master May 7, 2026
9 checks passed
@mjdavidson mjdavidson deleted the mattd/explore-ts-bootstrap branch May 7, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant