Skip to content

chore: update maintenance dependencies#529

Open
afc163 wants to merge 15 commits into
masterfrom
codex/update-maintenance-deps
Open

chore: update maintenance dependencies#529
afc163 wants to merge 15 commits into
masterfrom
codex/update-maintenance-deps

Conversation

@afc163

@afc163 afc163 commented Jun 29, 2026

Copy link
Copy Markdown
Member

Summary

  • Link the Ant Design ecosystem logo in README files to https://ant.design
  • Update React, React DOM, TypeScript, ESLint, Testing Library, @types/, @typescript-eslint/, lint-staged, and related lint dependencies
  • Add ESLint flat config compatibility for ESLint 9 and TypeScript ESLint 8
  • Use grouped Dependabot updates for npm and GitHub Actions

Test Plan

  • npm run lint
  • npm run tsc

Summary by CodeRabbit

  • 文档
    • 更新了中英文 README 顶部徽标展示:增加指向 ant.design 的链接,并微调图标竖直对齐。
  • Chores
    • 调整依赖自动更新的归并分组规则,以便更统一管理更新。
    • 升级前端开发与构建工具链(ESLint/TypeScript 等),并同步补全测试与静态资源的类型声明;同时更新编译配置以提升兼容性。

@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/react-component?upgradeToPro=build-rate-limit

@coderabbitai

coderabbitai Bot commented Jun 29, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6061ce2f-9dda-4af2-a1a1-a64f44ed3520

📥 Commits

Reviewing files that changed from the base of the PR and between fd02564 and e4ee5a9.

📒 Files selected for processing (7)
  • .eslintrc.js
  • README.md
  • README.zh-CN.md
  • eslint.config.mjs
  • global.d.ts
  • package.json
  • tsconfig.json
💤 Files with no reviewable changes (3)
  • global.d.ts
  • .eslintrc.js
  • tsconfig.json
✅ Files skipped from review due to trivial changes (2)
  • README.md
  • README.zh-CN.md

Walkthrough

本次变更升级了开发依赖,迁移到 ESLint Flat 配置,调整了 TypeScript 编译与全局声明配置,并更新了 README 顶部展示与 Dependabot 分组规则。

Changes

工具链与配置升级

Layer / File(s) Summary
依赖版本升级
package.json
devDependencies 中 ESLint、TypeScript、React、测试与开发工具链依赖整体升级与对齐。
ESLint Flat配置迁移
eslint.config.mjs
新增 Flat 配置数组,包含通用忽略、JS/TS/React/测试规则以及 react-hooksjesttypescript-eslint 配置。
TypeScript配置与全局声明
tsconfig.json, global.d.ts
调整模块解析、路径映射与严格性选项,并补充全局类型引用和静态资源/模块声明。
文档与Dependabot更新
README.md, README.zh-CN.md, .github/dependabot.yml
README 顶部徽标展示方式更新,Dependabot 为 npm 和 GitHub Actions 添加分组规则。

Estimated code review effort: 3 (Moderate) | ~25 minutes

Suggested reviewers: zombieJ

Poem

小兔跳过配置堆,🐰
扁平 ESLint 排成队。
依赖更新风吹来,
TypeScript 也换新鞋。
徽标轻轻挂上链,
兔子开心啃胡萝卜片。

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题简洁且准确概括了本次以维护性依赖和工具链更新为主的变更。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/update-maintenance-deps

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@socket-security

socket-security Bot commented Jun 29, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​types/​jest@​29.5.14 ⏵ 30.0.01001007780100
Addednpm/​@​types/​react@​19.2.171001007995100
Addednpm/​@​eslint/​js@​9.39.410010010088100
Addednpm/​typescript@​6.0.3100100909690
Addednpm/​eslint@​9.39.49710010096100

View full report

@socket-security

socket-security Bot commented Jun 29, 2026

Copy link
Copy Markdown

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.

View full report

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

Copy link
Copy Markdown
Contributor

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 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.

Comment thread tsconfig.json Outdated
Comment thread global.d.ts Outdated
Comment thread eslint.config.mjs Outdated
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tooltip Ready Ready Preview, Comment Jul 3, 2026 3:17am

@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown

❌ Deploy failed

PR preview ❌ Failed ❌ Failed
🔗 Preview https://react-component-tooltip-preview-pr-529.surge.sh (may be unavailable)
📝 Commite4ee5a9
🪵 LogsView logs
📋 Build log (last lines)
npm warn exec The following package was not found and will be installed: surge@0.28.0

   Running as afc163@gmail.com (Student)

        project: ./docs-dist
         domain: react-component-tooltip-preview-pr-529.surge.sh
           size: 59 files, 1.8 MB

   Aborted - you do not have permission to publish to react-component-tooltip-preview-pr-529.surge.sh

🤖 Powered by surge-preview

@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (766604a) to head (e4ee5a9).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown

React Doctor skipped this pull request — it changed no React files.

Reviewed by React Doctor for commit e4ee5a9.

@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/afc163s-projects?upgradeToPro=build-rate-limit

@coderabbitai coderabbitai 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.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 766604a and fd02564.

📒 Files selected for processing (7)
  • .github/dependabot.yml
  • README.md
  • README.zh-CN.md
  • eslint.config.mjs
  • global.d.ts
  • package.json
  • tsconfig.json

Comment thread global.d.ts Outdated
Comment thread package.json Outdated
Comment thread README.md Outdated
Comment thread README.zh-CN.md Outdated
@afc163

afc163 commented Jul 1, 2026

Copy link
Copy Markdown
Member Author

Related to ant-design/ant-design#58514.

Copilot AI review requested due to automatic review settings July 2, 2026 03:56

Copilot AI 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.

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.js with eslint.config.mjs (ESLint flat config) and add TypeScript ESLint integration.
  • Adjust TypeScript config and add a global.d.ts to 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.

Comment thread eslint.config.mjs
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.

2 participants