Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Enable typed linting (typescript-eslint recommendedTypeChecked)

Đang mở
#411 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 2 ngày

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
43/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
eslint, typescript
Lĩnh vực
testing, tooling

Hướng nghiên cứu

Start by reviewing the ESLint configuration and the TypeScript project configuration, especially coverage for e2e/** and drizzle.config.ts; the issue does not name their paths. Then measure the findings for the proposed rules and split the rollout into the listed steps. Done means an agreed rule set is enabled with project service configured for .ts files and the required paths covered.

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

Mô tả

Follow-up from #344. Running with recommendedTypeChecked produced about 1,000 findings, too many for one change.

Measured on main (2026-10-26), after removing noise from the trial config:

Rule Findings
no-unsafe-member-access / -assignment / -call / -return / -argument ~580
require-await 174
no-unnecessary-type-assertion 113
only-throw-error 98 (nearly all SvelteKit throw redirect() / error(), fixed by its allow option)
unbound-method 51
no-floating-promises 30
await-thenable 19
no-misused-promises 17
no-base-to-string 9

Prerequisites:

  • parserOptions.projectService for .ts files, not only Svelte files.
  • A tsconfig that covers e2e/** and drizzle.config.ts. Today the project service can't find them.
  • Lint time goes from about 36 s to about 55 s.

Proposed rollout, one PR per step:

  1. Turn on the rules that catch real bugs: no-floating-promises, no-misused-promises, await-thenable, and only-throw-error with a SvelteKit allow entry.
  2. no-unnecessary-type-assertion and require-await (mostly autofixable or mechanical).
  3. Decide whether to adopt the no-unsafe-* family at all, and how much of it, given how many hits come from untyped JSON and test code.
Ngôn ngữ chính
TypeScript
Star
1
Fork
0
Merge trung bình
4 ngày 15 giờ
Pull request đã merge (30 ngày)
22

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 stackabletech/cockpit

Tất cả issue của stackabletech/cockpit

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.