chore: update maintenance dependencies#517
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 59 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 (1)
📒 Files selected for processing (7)
Walkthrough本次 PR 主要升级项目工具链:引入 ESLint Flat Config、调整 TypeScript 编译配置与相关依赖版本、新增全局类型声明与 React 兼容类型定义;同时对 dependabot 更新分组及中英文 README 徽标链接进行了微调。 Changes构建/类型工具链升级
Estimated code review effort: 3 (Moderate) | ~25 minutes 仓库配置与文档微调
Estimated code review effort: 1 (Trivial) | ~5 minutes Estimated code review effort: 2 (Simple) | ~15 minutes Poem
🚥 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 updates the project's dependencies to React 19, TypeScript 6, and ESLint 9, introducing a flat ESLint configuration and compatibility type definitions. However, several feedback points should be addressed: strict type-checking flags in tsconfig.json should remain enabled to prevent runtime errors; manual 'any' declarations for Jest globals in global.d.ts should be removed to preserve strong typing; the deprecated 'ban-types' rule in ESLint should be updated to '@typescript-eslint/no-restricted-types'; global overrides for React 19 types in react-compat.d.ts should be avoided in favor of codebase compatibility; and '@typescript-eslint/no-unused-vars' should not be disabled globally.
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 |
|||||||||||||||
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #517 +/- ##
=======================================
Coverage 99.44% 99.44%
=======================================
Files 17 17
Lines 541 541
Branches 164 164
=======================================
Hits 538 538
Misses 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
React Doctor found no new issues. 🎉 Reviewed by React Doctor for commit |
|
Deployment failed with the following error: Learn More: https://vercel.com/react-component?upgradeToPro=build-rate-limit |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
tsconfig.json (1)
5-5: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win建议切换到新版 JSX 转换(
react-jsx)。
jsx仍设置为经典的"react"转换,但项目已升级到 React 19。React 19 升级指南建议启用现代 JSX 转换(2020+),否则可能出现过时转换的告警,且无法享受新转换带来的构建体积/速度收益。♻️ 建议改动
- "jsx": "react", + "jsx": "react-jsx",As per the provided React 19 documentation: "Enable the modern JSX Transform (2020+)." Without it you'll see: "Your app is using an outdated JSX transform."
🤖 Prompt for 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. In `@tsconfig.json` at line 5, The TypeScript JSX setting is still using the classic React transform, which is outdated for the React 19 upgrade. Update the jsx option in tsconfig.json from the current classic setting to the modern react-jsx transform so the project uses the newer JSX runtime and avoids outdated-transform warnings.
🤖 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 `@tsconfig.json`:
- Around line 20-27: Restore TypeScript strictness in tsconfig.json by removing
the explicit false overrides for noImplicitAny, strictNullChecks,
strictPropertyInitialization, strictFunctionTypes, strict, noImplicitThis, and
strictBindCallApply. Keep only the minimal compiler changes needed for the
upgrade, and if any strict flags must remain disabled temporarily, document the
reason and a follow-up plan in the PR. Locate the affected settings in
tsconfig.json and adjust the TypeScript configuration accordingly.
---
Nitpick comments:
In `@tsconfig.json`:
- Line 5: The TypeScript JSX setting is still using the classic React transform,
which is outdated for the React 19 upgrade. Update the jsx option in
tsconfig.json from the current classic setting to the modern react-jsx transform
so the project uses the newer JSX runtime and avoids outdated-transform
warnings.
🪄 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: 40a90fe8-c616-4c10-b210-5e1911b27af8
📒 Files selected for processing (8)
.github/dependabot.ymlREADME.mdREADME.zh-CN.mdeslint.config.mjsglobal.d.tspackage.jsonreact-compat.d.tstsconfig.json
|
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 updates the repo’s maintenance/tooling stack (React/TypeScript/ESLint/testing deps), migrates ESLint to a flat config compatible with ESLint 9 + typescript-eslint 8, and makes small documentation/infra hygiene updates (Ant Design logo links + Dependabot grouping).
Changes:
- Migrate ESLint from
.eslintrc.jstoeslint.config.mjs(flat config) and update lint-related dependencies. - Update TypeScript config and add
global.d.tsto centralize type references. - Update README branding links and Dependabot configuration for grouped updates.
Reviewed changes
Copilot reviewed 8 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
tsconfig.json |
Updates TS module resolution/settings and include list (now includes global.d.ts). |
global.d.ts |
Adds global type references and ambient module declarations. |
eslint.config.mjs |
Introduces ESLint 9 flat config with React, Jest, and TypeScript ESLint integration. |
.eslintrc.js |
Removes legacy ESLint config in favor of flat config. |
package.json |
Updates core dev tooling dependencies (ESLint/TS/React/testing tooling). |
.github/dependabot.yml |
Groups Dependabot updates for npm and GitHub Actions. |
src/Preview/index.tsx |
Initializes imgRef with null for safer ref usage. |
tests/__snapshots__/basic.test.tsx.snap |
Updates snapshot header URL. |
README.md |
Wraps Ant Design logo with a link to https://ant.design. |
README.zh-CN.md |
Same Ant Design logo link update + table formatting adjustments. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| languageOptions: { | ||
| parserOptions: { | ||
| projectService: true, | ||
| tsconfigRootDir: import.meta.dirname, |
| "dumi": "^2.4.38", | ||
| "eslint": "^9.39.4", | ||
| "eslint-config-prettier": "^10.1.8", | ||
| "eslint-plugin-jest": "^29.15.4", |

Summary
Test Plan
Summary by CodeRabbit
文档
开发体验