Skip to content

refactor(eslint-plugin-react-components): optimize identifier tracking in enforce-use-client rule#35772

Open
dmytrokirpa wants to merge 2 commits intomicrosoft:masterfrom
dmytrokirpa:refactor/eslint-plugin-react-components-enforce-use-client
Open

refactor(eslint-plugin-react-components): optimize identifier tracking in enforce-use-client rule#35772
dmytrokirpa wants to merge 2 commits intomicrosoft:masterfrom
dmytrokirpa:refactor/eslint-plugin-react-components-enforce-use-client

Conversation

@dmytrokirpa
Copy link
Contributor

Previous Behavior

New Behavior

Removes the ImportDeclaration visitor and moves all import-tracking logic into Identifier. Since ESLint visits each identifier node individually — including those inside import specifiers — the same sets can be built incrementally there, keeping all identifier-related logic in one place.

No behavior changes; existing tests cover all affected paths.

Related Issue(s)

@github-actions
Copy link

github-actions bot commented Feb 23, 2026

📊 Bundle size report

✅ No changes found

@github-actions
Copy link

Pull request demo site: URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant