deps: hold typescript at 6 until typescript-eslint supports 7

Đang mở
#235 0 bình luận 1 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
15/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
build-system

Hướng nghiên cứu

Nothing can change yet: the blocker is upstream. Read the typescript pin in package.json and the eslint hold in .github/dependabot.yml, then follow the typescript-eslint issue linked in the body. Done means the unblock criteria hold and the bump passes pnpm lint, pnpm typecheck, pnpm test and pnpm build.

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

Mô tả

dependencies javascript low-priority revisit

package.json pins typescript: "^6". Dependabot's monthly dev-dependencies group PR proposes ^7, and it cannot land: typescript-eslint does not support TypeScript 7 yet.

What breaks

With [email protected] installed, pnpm lint dies before ESLint evaluates a single file:

typescript-eslint does not support TS 7.0.
Please see https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/#running-side-by-side-with-typescript-6.0 to run typescript-eslint using the TS 6 API.

Oops! Something went wrong! :(
ESLint: 9.39.4
Error: typescript-eslint does not support TS 7.0.
    at Object.<anonymous> (node_modules/.pnpm/[email protected]_.../typescript-eslint/dist/index.js:52:11)
 ELIFECYCLE  Command failed with exit code 2.

It's a hard throw at module load in typescript-eslint, reached through eslint-config-next. That fails the website workflow's check job and, because the Pages build runs the same script, the Cloudflare Pages deployment too.

Upstream tracking

Decision

Stay on TypeScript 6 for now. #231 is parked as a draft rather than closed so the other 11 bumps in that group stay reviewable.

This is the same shape as the eslint major hold already recorded in .github/dependabot.yml — a transitive peer that hasn't caught up yet.

Unblock criteria

  1. typescript-eslint ships a release supporting TS >= 7.
  2. eslint-config-next depends on a version of it that does.

Then: bump typescript to ^7, run pnpm lint, pnpm typecheck, pnpm test, pnpm build, and undraft/re-run #231 (or let Dependabot open a fresh group PR).

Optional, if the recurring PR noise is annoying

Add a version-update:semver-major ignore for typescript in .github/dependabot.yml, next to the existing eslint entry. Not done here — it would also silence the signal that the upgrade is ready.

Ngôn ngữ chính
TypeScript
Star
3
Fork
0
Merge trung bình
17 giờ 13 phút
Pull request đã merge (30 ngày)
57

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 decdn/website

Tất cả issue của decdn/website

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.