Skip to content

test: use type only import in type test to fix CI failure#746

Merged
fasttime merged 1 commit intomainfrom
test/fix-ci-failure
May 4, 2026
Merged

test: use type only import in type test to fix CI failure#746
fasttime merged 1 commit intomainfrom
test/fix-ci-failure

Conversation

@lumirlumir
Copy link
Copy Markdown
Member

@lumirlumir lumirlumir commented May 4, 2026

Prerequisites checklist

AI acknowledgment

  • I did not use AI to generate this PR.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

What is the purpose of this pull request?

This PR fixes an issue where the main branch's CI is failing due to the newly released knip.

https://github.com/eslint/js/actions/runs/25274353285/job/74101743732

image

What changes did you make? (Give an overview)

It seems that newer versions of knip have become stricter when checking imports, so type-only imports now need to be explicitly marked with type.

I'm not entirely sure which part exactly made this happen, but knip v6.10 introduced some related changes.

https://github.com/webpro-nl/knip/releases/tag/knip%406.10.0

image

Related Issues

N/A

Is there anything you'd like reviewers to focus on?

N/A

@github-project-automation github-project-automation Bot moved this to Needs Triage in Triage May 4, 2026
@lumirlumir lumirlumir marked this pull request as ready for review May 4, 2026 15:08
@fasttime fasttime moved this from Needs Triage to Triaging in Triage May 4, 2026
@fasttime fasttime moved this from Triaging to Implementing in Triage May 4, 2026
Copy link
Copy Markdown
Member

@fasttime fasttime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@fasttime fasttime merged commit 023a0e9 into main May 4, 2026
19 checks passed
@fasttime fasttime deleted the test/fix-ci-failure branch May 4, 2026 19:21
@github-project-automation github-project-automation Bot moved this from Implementing to Complete in Triage May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

2 participants