Skip to content

Conversation

@Fryuni
Copy link
Member

@Fryuni Fryuni commented Jan 21, 2026

Copilot AI review requested due to automatic review settings January 21, 2026 13:43
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 21, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@croct/eslint-plugin@484

commit: c096a3f

@Fryuni
Copy link
Member Author

Fryuni commented Jan 21, 2026

Suggested and approved on Slack

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enables the @typescript-eslint/consistent-type-imports ESLint rule to enforce consistent use of type imports across the TypeScript codebase. The rule is documented in the linked TypeScript ESLint blog post and helps distinguish between value imports and type-only imports.

Changes:

  • Enabled the @typescript-eslint/consistent-type-imports rule as an error in the TypeScript configuration
  • Updated two rule files to use import type syntax for type-only imports (RuleFix and TSESTree)

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/configs/typescript.ts Added @typescript-eslint/consistent-type-imports rule configuration set to 'error'
src/rules/parameter-destructuring/index.ts Changed RuleFix import to use import type syntax
src/rules/min-chained-call-depth/index.ts Split imports to separate type imports (TSESTree) from value imports (AST_TOKEN_TYPES, AST_NODE_TYPES)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Fryuni Fryuni merged commit 760a6c5 into master Jan 21, 2026
12 checks passed
@Fryuni Fryuni deleted the consistent-type-imports branch January 21, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants