Skip to content

vp migrate beta test#4

Draft
fengmk2 wants to merge 2 commits into
mainfrom
vp-migrate-test
Draft

vp migrate beta test#4
fengmk2 wants to merge 2 commits into
mainfrom
vp-migrate-test

Conversation

@fengmk2

@fengmk2 fengmk2 commented Jun 30, 2026

Copy link
Copy Markdown
Owner

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request migrates the repository to use pnpm catalogs for managing vite, vitest, and vite-plus dependencies, updates VS Code settings to use the Oxc formatter, and adjusts imports in various test files to use vite-plus. Feedback on these changes highlights two issues: first, the vitest catalog entry in pnpm-workspace.yaml is set to a standard version (4.1.9) instead of the custom vite-plus-test integration package, which breaks the override mapping; second, modifying the dependency array in the MutableInDepsComponent test fixture to [] defeats the purpose of testing mutable dependencies.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread pnpm-workspace.yaml
- unrs-resolver
catalog:
vite: npm:@voidzero-dev/vite-plus-core@0.0.0-commit.4be8d5190ff1283cef27bcb957cf313891fd1269
vitest: 4.1.9

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

In the previous configuration, vitest was overridden to npm:@voidzero-dev/vite-plus-test@^0.1.15. With the new catalog setup, vitest is set to 4.1.9, which is a standard vitest version rather than the vite-plus-test integration package. This will break the override mapping. It should be updated to point to the corresponding vite-plus-test commit-hash version.

  vitest: npm:@voidzero-dev/vite-plus-test@0.0.0-commit.4be8d5190ff1283cef27bcb957cf313891fd1269

useEffect(() => {
document.title = location.pathname;
}, [location.pathname]);
}, []);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The component MutableInDepsComponent in this test fixture seems specifically designed to test how the linter handles mutable values (like location.pathname) in the useEffect dependency array. Changing the dependency array to [] removes the mutable dependency, which likely defeats the purpose of this test fixture and reduces test coverage for this rule. If this was changed to suppress a lint error during migration, consider using a lint suppression comment instead of modifying the test fixture's behavior.

Suggested change
}, []);
}, [location.pathname]);

@pkg-pr-new

pkg-pr-new Bot commented Jun 30, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/eslint-plugin-react-doctor@4
npm i https://pkg.pr.new/oxlint-plugin-react-doctor@4
npm i https://pkg.pr.new/react-doctor@4

commit: 2e248ba

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.

1 participant