[TS v2] Adopt native TypeScript 7

Đang mở
#387 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
storybook, typescript

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
TypeScript
Star
145
Fork
12
Merge trung bình
1 ngày 14 giờ
Pull request đã merge (30 ngày)
43

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của gravity-ui/graph

Tất cả issue của gravity-ui/graph

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.