chore: update maintenance dependencies#529
Conversation
|
Deployment failed with the following error: Learn More: https://vercel.com/react-component?upgradeToPro=build-rate-limit |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
💤 Files with no reviewable changes (3)
✅ Files skipped from review due to trivial changes (2)
Walkthrough本次变更升级了开发依赖,迁移到 ESLint Flat 配置,调整了 TypeScript 编译与全局声明配置,并更新了 README 顶部展示与 Dependabot 分组规则。 Changes工具链与配置升级
Estimated code review effort: 3 (Moderate) | ~25 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
There was a problem hiding this comment.
Code Review
This pull request upgrades React to v19, TypeScript to v6, and ESLint to v9, alongside adding a new flat ESLint configuration and compatibility type definitions. However, several issues were identified in the review: disabling strict TypeScript compiler flags in tsconfig.json significantly reduces type safety; declaring test globals as any in global.d.ts overrides strongly-typed Jest definitions; and shimming deprecated ESLint rules at runtime in eslint.config.mjs adds unnecessary complexity and fragility compared to updating the base configuration directly.
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
❌ Deploy failed
📋 Build log (last lines)🤖 Powered by surge-preview |
|||||||||
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #529 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 3 3
Lines 36 36
Branches 14 14
=========================================
Hits 36 36 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
React Doctor skipped this pull request — it changed no React files. Reviewed by React Doctor for commit |
|
Deployment failed with the following error: Learn More: https://vercel.com/afc163s-projects?upgradeToPro=build-rate-limit |
There was a problem hiding this comment.
Actionable comments posted: 4
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@global.d.ts`:
- Around line 22-29: `jest.Matchers` 的泛型签名与 `@types/jest` 不一致,导致声明合并冲突。请在
`declare namespace jest` 下的 `Matchers` 接口中将泛型参数对齐为与 `@types/jest@30` 一致的形式,并保留现有
matcher 方法定义,这样可避免 TS2428 类型检查失败。
In `@package.json`:
- Around line 88-90: The React peer dependency range is too narrow in
peerDependencies and excludes compatible React 19 versions earlier than 19.2.7.
Update the react and react-dom entries in package.json to a broader React 19
range, such as ^19.0.0, unless code elsewhere explicitly requires
19.2.7-specific APIs.
In `@README.md`:
- Line 52: Fix the installation command typo in the local development
instructions by replacing the incorrect “ut install” text with the proper
package install command in both README occurrences. Update the affected setup
guidance so the referenced install step is consistent and discoverable, using
the surrounding installation section to locate the two occurrences.
In `@README.zh-CN.md`:
- Around line 52-53: The local setup instructions contain a typo in the install
command, so update the README.zh-CN.md development steps to use npm install
instead of ut install in both occurrences. Locate the two setup command blocks
in the README and correct the installation command text only, keeping the rest
of the instructions unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: bb89e218-a006-408e-a627-166fc45e375c
📒 Files selected for processing (7)
.github/dependabot.ymlREADME.mdREADME.zh-CN.mdeslint.config.mjsglobal.d.tspackage.jsontsconfig.json
|
Related to ant-design/ant-design#58514. |
There was a problem hiding this comment.
Pull request overview
This PR updates the project’s maintenance/tooling setup by modernizing dependency versions, migrating ESLint to the flat config format for ESLint 9 compatibility, and making small README branding/link improvements.
Changes:
- Upgrade core dev tooling dependencies (React/ReactDOM, TypeScript, ESLint, Testing Library, typings, and lint tooling).
- Replace legacy
.eslintrc.jswitheslint.config.mjs(ESLint flat config) and add TypeScript ESLint integration. - Adjust TypeScript config and add a
global.d.tsto centralize type references and module declarations.
Reviewed changes
Copilot reviewed 6 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tsconfig.json | Updates TS module resolution/settings and includes the new global type declarations file. |
| global.d.ts | Adds project-wide type references (jest/node/react) and module declarations for assets and a few modules. |
| eslint.config.mjs | Introduces ESLint 9 flat config with React/TS/Jest rule sets and ignores. |
| package.json | Bumps dev tooling dependencies and adds new ESLint-related packages. |
| .eslintrc.js | Removes legacy ESLint config in favor of the new flat config. |
| .github/dependabot.yml | Enables grouped Dependabot updates for npm and GitHub Actions. |
| README.md | Links the Ant Design ecosystem logo to ant.design. |
| README.zh-CN.md | Links the Ant Design ecosystem logo to ant.design. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Summary
Test Plan
Summary by CodeRabbit