[TS v2] Adopt native TypeScript 7

Aperta
#387 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
storybook, typescript

Direzione di ricerca

Start with the v2 build and package-contract configuration, then review the prerequisites and readiness checks in this issue, including #353, #367, and the TypeScript 7 compatibility tooling removed in #386. Check whether typescript-eslint and Storybook docgen support TypeScript 7, then run the build, declaration emit, package-contract consumers, lint, Jest, Storybook build, and E2E on the CI environment. Done means all acceptance criteria pass and supported consumer TypeScript versions are documented.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Goal

Move the v2 workspace from TypeScript 6.0 to native TypeScript 7 for builds, declaration emit and type checks, as a separate task after the strict track (#353).

Target branch: v2. Not a prerequisite for #353.

Why deferred

TypeScript 7 is a new major release. #386 removed the TypeScript 7 compatibility tooling so that #353 targets TypeScript 6.0.3 only. An earlier probe with TypeScript 7.0.2 found no blockers in the sources: all source configs typechecked, the publish configs emitted declarations and the consumer fixtures passed.

Prerequisites

  • typescript-eslint supports TypeScript 7 (type-aware lint uses the JS compiler API).
  • Storybook docgen (react-docgen-typescript) supports TypeScript 7 or is replaced.
  • scripts/strict-diagnostics.mjs (classic API) is retired by #367.

Readiness kept by the strict track

  • Zero TypeScript 6 deprecation diagnostics without ignoreDeprecations.
  • Repository scripts use only the tsc CLI, never the compiler API.
  • Strict projects without an allowed-error baseline.

Acceptance criteria

  • Builds and declaration emit use TypeScript 7; commands identify the compiler they run.
  • Packed public types pass the package-contract consumers with strict: true and skipLibCheck: false; the supported consumer TypeScript versions are documented.
  • Lint, Jest, Storybook build, E2E and package contracts pass on the actual CI environment.
Lingua principale
TypeScript
Stelle
145
Fork
12
Merge medio
1g 14h
PR unite (30g)
43

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di gravity-ui/graph

Tutte le issue di gravity-ui/graph

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.