chore: update maintenance dependencies#190
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 23 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (4)
📒 Files selected for processing (8)
概览升级开发工具链:引入 ESLint 9.x flat config(通过 变更工具链升级与类型兼容
估算代码审查工作量🎯 3 (Moderate) | ⏱️ ~25 minutes 小诗
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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 the project to React 19, TypeScript 6, and ESLint 9, adds a flat ESLint configuration, and groups Dependabot updates. However, the feedback highlights two critical issues: disabling strict type-checking flags in tsconfig.json significantly reduces type safety, and declaring ambient overrides for 'react' in a local react-compat.d.ts file will cause compilation errors for consumers since it won't be published. It is recommended to keep strict mode enabled and refactor the source code to be natively compatible with React 19.
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.
✅ Preview is ready!
↩️ Previous: ⚡️ 🤖 Powered by surge-preview |
|||||||||||||||
|
React Doctor skipped this pull request — it changed no React files. Reviewed by React Doctor for commit |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #190 +/- ##
=======================================
Coverage 98.34% 98.34%
=======================================
Files 11 11
Lines 423 423
Branches 131 137 +6
=======================================
Hits 416 416
Misses 7 7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Deployment failed with the following error: Learn More: https://vercel.com/afc163s-projects?upgradeToPro=build-rate-limit |
|
Related to ant-design/ant-design#58514. |
There was a problem hiding this comment.
Pull request overview
This PR modernizes the repo’s maintenance/tooling setup by upgrading core dev dependencies (React/TS/ESLint/testing), migrating to ESLint 9 flat config, and tightening automation configuration (Dependabot grouping and CodeQL behavior). It also makes the Ant Design ecosystem logo in the READMEs link to the Ant Design site.
Changes:
- Upgrade React/ReactDOM, TypeScript, ESLint 9, Testing Library, and related lint tooling deps.
- Replace legacy
.eslintrc.jswitheslint.config.mjs(flat config) and addglobal.d.tsto centralize ambient type/module declarations. - Adjust automation: Dependabot grouped updates; CodeQL job gated to skip certain events.
Reviewed changes
Copilot reviewed 12 out of 14 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
tsconfig.json |
Updates module resolution/config and adds global.d.ts to include. |
package.json |
Upgrades major dev tooling deps (React/TS/ESLint/testing) and adds new lint-related packages. |
eslint.config.mjs |
Introduces ESLint 9 flat config with TS/React/Jest integration. |
global.d.ts |
Adds ambient type references and module declarations for CSS/LESS and a few modules. |
.eslintrc.js |
Removes legacy ESLint config (superseded by flat config). |
.github/workflows/codeql.yml |
Adds conditional to skip CodeQL analysis on PR events. |
.github/dependabot.yml |
Enables grouped Dependabot updates for npm and GitHub Actions. |
README.md |
Wraps Ant Design logo with a link to https://ant.design. |
README.zh-CN.md |
Wraps Ant Design logo with a link to https://ant.design. |
src/utils/types.ts |
Removes an ESLint disable comment related to TypeScript utility types. |
tests/__snapshots__/TextArea.test.tsx.snap |
Snapshot header link update. |
tests/__snapshots__/TextArea.allowClear.test.tsx.snap |
Snapshot header link update. |
tests/__snapshots__/index.test.tsx.snap |
Snapshot header link update. |
tests/__snapshots__/BaseInput.test.tsx.snap |
Updates snapshots for input rendering (e.g., value="" removal) and header link. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Summary
Test Plan
Summary by CodeRabbit
新功能
Bug 修复
维护