Skip to content

Conversation

@Rel1cx
Copy link
Owner

@Rel1cx Rel1cx commented Sep 26, 2025

This commit replaces import * as X statements with direct imports from their respective modules.

The changes primarily affect imports from @eslint-react/core and @eslint-react/var packages, replacing star imports with named imports of just the functions and types being used.

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Docs
  • Test
  • New Binding issue #___
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes, and the changes were approved in issue #___
  • No

Checklist

  • When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
  • I have added a convincing reason for adding this feature, if necessary

Other information

This commit replaces `import * as X` statements with direct imports from
their respective modules.

The changes primarily affect imports from @eslint-react/core and
@eslint-react/var packages, replacing star imports with named imports of
just the functions and types being used.
@Rel1cx Rel1cx requested a review from Copilot September 26, 2025 21:25
@vercel
Copy link

vercel bot commented Sep 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
eslint-react Building Building Preview Comment Sep 26, 2025 9:25pm

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 refactors imports across the codebase by replacing star imports (import * as X) with direct named imports. The changes primarily target imports from @eslint-react/core and @eslint-react/var packages, replacing star imports with only the specific functions and types that are being used.

Key changes include:

  • Replacing import * as ER with specific function imports from @eslint-react/core
  • Replacing import * as VAR with specific function imports from @eslint-react/var
  • Minor import reordering in some files

Reviewed Changes

Copilot reviewed 84 out of 84 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/plugins/eslint-plugin-react-x/src/rules/*.ts Replace ER star imports with direct imports from @eslint-react/core
packages/plugins/eslint-plugin-react-web-api/src/rules/*.ts Replace ER star imports with direct imports from @eslint-react/core and VAR imports from @eslint-react/var
packages/plugins/eslint-plugin-react-web-api/src/types//.ts Replace ER star imports with direct imports from @eslint-react/core
packages/plugins/eslint-plugin-react-naming-convention/src/rules/*.ts Replace ER star imports with direct imports from @eslint-react/core
packages/plugins/eslint-plugin-react-hooks-extra/src/**/*.ts Replace ER and VAR star imports with direct imports
packages/plugins/eslint-plugin-react-dom/src/**/*.ts Replace ER star imports with direct imports from @eslint-react/core
packages/plugins/eslint-plugin-react-debug/src/rules/*.ts Replace ER star imports with direct imports from @eslint-react/core
packages/core/src/**/*.ts Replace VAR star imports with direct imports from @eslint-react/var

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Rel1cx Rel1cx marked this pull request as ready for review September 26, 2025 21:26
@Rel1cx Rel1cx merged commit 1782000 into main Sep 26, 2025
11 of 12 checks passed
@Rel1cx Rel1cx deleted the cleanup-imports branch September 26, 2025 21:26
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