Skip to content

chore: update maintenance dependencies#367

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

chore: update maintenance dependencies#367
afc163 wants to merge 19 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

  • 新功能
    • 更新了依赖更新配置与项目类型声明,提升自动化维护与开发体验。
  • Bug 修复
    • 优化了多个组件和 Hook 的引用处理,支持元素卸载时传入空值,减少类型与引用异常。
    • 调整了滚动条与列表相关的初始引用状态,使行为更稳定。
  • 文档
    • 更新了中英文 README 的徽标展示、链接样式和示例命令显示。
  • 重构
    • 切换到新的 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

Warning

Review limit reached

@afc163, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 7 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5a4456e0-f678-4f34-90bd-2fa852d4b091

📥 Commits

Reviewing files that changed from the base of the PR and between 62e0d25 and 51c0c08.

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

Walkthrough

本次变更迁移 ESLint 至 Flat Config、调整 tsconfig 编译选项并新增 global.d.ts 全局类型声明,将多个组件与 hooks 中的 ref 类型改为可空(HTMLElement | null),示例组件切换为 React.forwardRef,同时升级依赖版本(含 React 19 约束),并对 README、dependabot.yml 做文档与 CI 配置微调。

Changes

工具链与类型系统更新

Layer / File(s) Summary
ESLint Flat Config 迁移
eslint.config.mjs
新增 Flat Config,通过 FlatCompat 转换旧配置并用 normalizeConfig 过滤/覆盖 TypeScript ESLint 规则。
TypeScript 配置与全局类型声明
tsconfig.json, global.d.ts
调整 moduleResolution/module/jsx 及关闭严格性选项,新增 global.d.ts 提供 JSX、jest、vi 及模块类型声明。
Ref 类型可空化改造
src/Item.tsx, src/hooks/useChildren.tsx, src/hooks/useHeights.tsx, src/hooks/useScrollTo.tsx, src/List.tsx, src/ScrollBar.tsx
多处 ref 相关类型与初始值统一改为支持 null/undefined,并将 ScrollBar 的 onThumbMouseDown 改为 useEvent 回调。
示例组件 forwardRef 改造
examples/no-virtual.tsx, examples/switch.tsx, examples/animate.tsx
示例中 MyItem 改用 React.forwardRef,listRef 初始化为显式 null。
依赖升级与文档/CI 配置
package.json, README.md, README.zh-CN.md, .github/dependabot.yml
升级依赖版本(含 React 19 peerDependencies),调整 README 徽标与安装命令展示,dependabot 新增依赖分组。

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

Possibly related PRs

Poem

小兔子敲键盘,配置换新装 🐇
ref 不再报错,null 也能安放
forwardRef 一跳,示例更漂亮
依赖升到十九,跟着春风远航
咬一口胡萝卜,代码更清爽~ 🥕

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题简洁地概括了此次维护性依赖与工具链更新的主要变更。
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 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

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

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 updates the project to support React 19 and TypeScript 6, which includes upgrading dependencies, migrating to ESLint's flat configuration, refactoring components to use React.forwardRef, and adding compatibility type declarations. Feedback on these changes highlights several type safety and compatibility concerns: declaring the deprecated hydrate method in react-dom risks runtime errors in React 19, overriding Jest globals with any disables type safety in tests, disabling @typescript-eslint/no-unused-vars globally can lead to dead code, and disabling strict compiler flags in tsconfig.json significantly reduces type safety.

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 react-compat.d.ts Outdated
Comment thread global.d.ts Outdated
Comment thread eslint.config.mjs
Comment thread tsconfig.json Outdated
@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown

React Doctor found 25 issues in 4 files · 25 warnings · score 62 / 100 (Needs work) · vs master

25 warnings

src/List.tsx

  • ⚠️ L7 flushSync skips View Transitions no-flush-sync
  • ⚠️ L95 Large component is hard to read and change no-giant-component
  • ⚠️ L142 Missing effect dependencies exhaustive-deps
  • ⚠️ L160 State only used in handlers rerender-state-only-in-handlers
  • ⚠️ L271 Missing effect dependencies exhaustive-deps
  • ⚠️ L300 Missing effect dependencies exhaustive-deps
  • ⚠️ L357 Ref initializer runs on every render rerender-lazy-ref-init
  • ⚠️ L485 Non-passive scroll listener client-passive-event-listeners
  • ⚠️ L494 Missing effect dependencies exhaustive-deps
  • ⚠️ L503 Missing effect dependencies exhaustive-deps
  • ⚠️ L555 Missing effect dependencies exhaustive-deps

src/ScrollBar.tsx

  • ⚠️ L82 Pure function rebuilt every render prefer-module-scope-pure-function
  • ⚠️ L106 Listener re-subscribes on every handler change advanced-event-handler-refs
  • ⚠️ L113 Non-passive scroll listener client-passive-event-listeners
  • ⚠️ L114 Non-passive scroll listener client-passive-event-listeners
  • ⚠️ L188 Missing effect dependencies exhaustive-deps
  • ⚠️ L190 Missing effect dependencies exhaustive-deps
  • ⚠️ L195 Missing effect dependencies exhaustive-deps
  • ⚠️ L210 Static value rebuilt every render prefer-module-scope-static-value
  • ⚠️ L247 Interaction on static element no-static-element-interactions
  • ⚠️ L258 Interaction on static element no-static-element-interactions

src/hooks/useHeights.tsx

  • ⚠️ L22 Ref initializer runs on every render rerender-lazy-ref-init
  • ⚠️ L23 Ref initializer runs on every render rerender-lazy-ref-init

src/hooks/useScrollTo.tsx

  • ⚠️ L154 setState reads a stale value rerender-functional-setstate
  • ⚠️ L167 Missing effect dependencies exhaustive-deps

Reviewed by React Doctor for commit 51c0c08. See inline comments for fixes.

@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)
virtual-list Ready Ready Preview, Comment Jul 2, 2026 4:19am

@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown

❌ Deploy failed

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

   Running as afc163@gmail.com (Student)

        project: ./docs-dist
         domain: react-component-virtual-list-preview-pr-367.surge.sh
           size: 52 files, 1.9 MB

   Aborted - you do not have permission to publish to react-component-virtual-list-preview-pr-367.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 97.50%. Comparing base (cf92789) to head (51c0c08).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #367   +/-   ##
=======================================
  Coverage   97.50%   97.50%           
=======================================
  Files          19       19           
  Lines         800      801    +1     
  Branches      193      191    -2     
=======================================
+ Hits          780      781    +1     
  Misses         20       20           

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

@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: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
examples/switch.tsx (1)

9-24: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

去掉对 MyItem 的二次 forwardRef 包装

MyItem 在第 9 行已经是 forwardRef 组件,第 26 行再包一层会把组件对象当成 render 函数传入,运行时会报错。直接复用 MyItem 即可。

建议修改
-const ForwardMyItem = React.forwardRef(MyItem as any);
+const ForwardMyItem = MyItem;
🤖 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 `@examples/switch.tsx` around lines 9 - 24, `MyItem` is already created with
React.forwardRef, so remove the extra forwardRef wrapping where it is reused to
avoid passing the component object as a render function. Update the usage in the
switch example to reference `MyItem` directly, and keep the existing `MyItem`
definition unchanged.
examples/no-virtual.tsx (1)

10-26: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

删除多余的 forwardRef 包装
MyItem 已经是 forwardRef 组件了,ForwardMyItem = React.forwardRef(MyItem as any) 会把组件对象当成 render function 继续包装,渲染时会出错。这里直接复用 MyItem 即可。

建议修改
-const ForwardMyItem = React.forwardRef(MyItem as any);
+const ForwardMyItem = MyItem;
🤖 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 `@examples/no-virtual.tsx` around lines 10 - 26, Remove the extra
React.forwardRef wrapping around MyItem in the no-virtual example. MyItem is
already created with React.forwardRef, so ForwardMyItem should reuse MyItem
directly instead of treating the component object as a render function. Update
the usage site that defines ForwardMyItem to point to MyItem as-is and keep the
existing MyItem component definition unchanged.
🧹 Nitpick comments (1)
.github/dependabot.yml (1)

11-14: 🧹 Nitpick | 🔵 Trivial

通配符分组会把所有依赖(含主版本升级)合并到同一个 PR。

patterns: ['*'] 会将所有 npm/GitHub Actions 更新都归入单个分组 PR,补丁、次要及主版本升级会混在一起,一旦某个主版本升级导致构建失败,会阻塞其余安全补丁的合入。如非刻意如此,可考虑按更新类型(如 update-types: ["patch", "minor"] 单独分组,major 单独处理)进一步细分。

Also applies to: 24-27

🤖 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 @.github/dependabot.yml around lines 11 - 14, The current npm-dependencies
group uses a wildcard pattern that buckets all updates, including major
upgrades, into one Dependabot PR. Update the Dependabot grouping config in the
groups block to split updates by type so patch/minor changes can land separately
from major upgrades, and keep the relevant group definition aligned with the
npm-dependencies symbol in the dependabot config.
🤖 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 `@react-compat.d.ts`:
- Around line 3-11: The module augmentation in react-compat.d.ts is
reintroducing pre-React-19 signatures for useRef, isValidElement, and
cloneElement, which leaks incompatible public types. Update the zero-argument
useRef<T>() call sites under src and examples to React 19-compatible usage
first, then remove the react module augmentation entirely so the package matches
`@types/react`@19. Use the symbols useRef, isValidElement, and cloneElement to
find and eliminate the compatibility shim.

In `@src/Item.tsx`:
- Around line 9-13: The ref callback in Item.tsx must accept null because React
will call it with null during unmount and StrictMode replay. Update the setRef
signature in ItemProps and the refFunc callback to use HTMLElement | null, and
ensure the value is passed through unchanged so downstream callers can handle
cleanup safely.

In `@tsconfig.json`:
- Line 5: The JSX compiler setting is still using the old transform, so update
the tsconfig JSX option from the legacy React mode to the modern React JSX
transform. Change the tsconfig configuration entry for jsx to the newer
react-jsx value so React 19 builds use the current transform and avoid the
outdated JSX warning.

---

Outside diff comments:
In `@examples/no-virtual.tsx`:
- Around line 10-26: Remove the extra React.forwardRef wrapping around MyItem in
the no-virtual example. MyItem is already created with React.forwardRef, so
ForwardMyItem should reuse MyItem directly instead of treating the component
object as a render function. Update the usage site that defines ForwardMyItem to
point to MyItem as-is and keep the existing MyItem component definition
unchanged.

In `@examples/switch.tsx`:
- Around line 9-24: `MyItem` is already created with React.forwardRef, so remove
the extra forwardRef wrapping where it is reused to avoid passing the component
object as a render function. Update the usage in the switch example to reference
`MyItem` directly, and keep the existing `MyItem` definition unchanged.

---

Nitpick comments:
In @.github/dependabot.yml:
- Around line 11-14: The current npm-dependencies group uses a wildcard pattern
that buckets all updates, including major upgrades, into one Dependabot PR.
Update the Dependabot grouping config in the groups block to split updates by
type so patch/minor changes can land separately from major upgrades, and keep
the relevant group definition aligned with the npm-dependencies symbol in the
dependabot config.
🪄 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: c72c44df-debf-4340-bfa5-067e6a375b4e

📥 Commits

Reviewing files that changed from the base of the PR and between cf92789 and 597450f.

📒 Files selected for processing (11)
  • .github/dependabot.yml
  • README.md
  • README.zh-CN.md
  • eslint.config.mjs
  • examples/no-virtual.tsx
  • examples/switch.tsx
  • global.d.ts
  • package.json
  • react-compat.d.ts
  • src/Item.tsx
  • tsconfig.json

Comment thread react-compat.d.ts Outdated
Comment thread src/Item.tsx
Comment thread tsconfig.json Outdated
Comment thread src/ScrollBar.tsx Outdated
Comment thread examples/no-virtual.tsx
Comment thread examples/no-virtual.tsx
Comment thread examples/switch.tsx
Comment thread examples/switch.tsx

@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: 2

🧹 Nitpick comments (1)
tsconfig.json (1)

16-22: 🎯 Functional Correctness | 🔵 Trivial | 🏗️ Heavy lift

strictNullChecks: false 削弱了同一 cohort 中 ref 可空化改造的实际收益。

本次 cohort 将 Item.tsxuseChildren.tsxuseHeights.tsxuseScrollTo.tsxList.tsxScrollBar.tsx 中的 ref 类型统一改为支持 null/undefined,但此处 strictNullChecks 仍为 false(非本次新增,但与新引入的可空类型标注方向不一致)。关闭该项后,TypeScript 不会在编译期强制校验对可能为 null 的 ref 的使用,可空类型标注更多是文档层面的说明,无法真正防止运行时的空引用问题。建议评估后续单独开启 strictNullChecks(可考虑逐步迁移),以让类型标注真正发挥作用。

🤖 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` around lines 16 - 22, `strictNullChecks` is still disabled in
tsconfig, which makes the new nullable ref typings in Item.tsx, useChildren.tsx,
useHeights.tsx, useScrollTo.tsx, List.tsx, and ScrollBar.tsx largely unenforced.
Update the TypeScript configuration to enable `strictNullChecks` (or plan a
staged rollout if needed) so the ref nullability changes are actually checked by
the compiler and the new types provide real safety.
🤖 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 `@README.md`:
- Line 53: The install command in the README is incorrect: replace the stray “ut
install” entry with the intended package manager install command. Update the
relevant README install instructions consistently (including any other
occurrences) so they match the project’s actual setup, using the same command
style already referenced elsewhere in the document.

In `@README.zh-CN.md`:
- Line 53: The installation command in the README is incorrect and should match
the standard package manager used elsewhere in the docs. Update the install step
in the Chinese README to use the same command as README.md, and make sure the
wording in the installation section is consistent by fixing the command text in
the relevant README install instructions.

---

Nitpick comments:
In `@tsconfig.json`:
- Around line 16-22: `strictNullChecks` is still disabled in tsconfig, which
makes the new nullable ref typings in Item.tsx, useChildren.tsx, useHeights.tsx,
useScrollTo.tsx, List.tsx, and ScrollBar.tsx largely unenforced. Update the
TypeScript configuration to enable `strictNullChecks` (or plan a staged rollout
if needed) so the ref nullability changes are actually checked by the compiler
and the new types provide real safety.
🪄 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: 7ff69d02-6660-4161-8509-3156abba9178

📥 Commits

Reviewing files that changed from the base of the PR and between 597450f and 62e0d25.

📒 Files selected for processing (13)
  • README.md
  • README.zh-CN.md
  • eslint.config.mjs
  • examples/animate.tsx
  • examples/switch.tsx
  • package.json
  • src/Item.tsx
  • src/List.tsx
  • src/ScrollBar.tsx
  • src/hooks/useChildren.tsx
  • src/hooks/useHeights.tsx
  • src/hooks/useScrollTo.tsx
  • tsconfig.json
✅ Files skipped from review due to trivial changes (1)
  • src/List.tsx
🚧 Files skipped from review as they are similar to previous changes (4)
  • src/Item.tsx
  • examples/switch.tsx
  • package.json
  • eslint.config.mjs

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

Maintenance-focused update that modernizes the repo’s tooling (React/TS/ESLint/testing deps, lint configuration, Dependabot grouping) while tightening ref-related typing across the virtual list implementation and examples, plus small README link/format updates.

Changes:

  • Updated core dev tooling dependencies and added an ESLint flat config (eslint.config.mjs), removing legacy .eslintrc.js.
  • Ref/DOM handling cleanup: refs initialized with null, callback refs updated to allow null, and event handlers stabilized via useEvent.
  • Documentation tweaks: link Ant Design ecosystem logo to https://ant.design and minor README formatting adjustments; Dependabot grouped updates.

Reviewed changes

Copilot reviewed 15 out of 17 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tsconfig.json Switch to bundler module resolution / react-jsx, adjust include/exclude, add module setting.
src/ScrollBar.tsx Stabilize thumb handler with useEvent; ref initialization and timeout ref typing cleanup.
src/List.tsx Ref initialization to null and minor type cleanups for internal refs.
src/Item.tsx Allow callback ref to receive null and ensure callback updates with setRef.
src/hooks/useScrollTo.tsx Tighten ref typing to `number
src/hooks/useHeights.tsx Allow instance refs to be cleared with null (unmount support).
src/hooks/useChildren.tsx Allow node refs to be cleared with null through setNodeRef.
README.zh-CN.md Link Ant Design logo to ant.design and adjust table formatting/whitespace.
README.md Link Ant Design logo to ant.design and adjust whitespace.
package.json Dependency/tooling upgrades (React/TS/ESLint/testing/lint-staged/etc).
global.d.ts Add global type references and module declarations for styles and a few modules.
examples/switch.tsx Update example component ref usage (but currently contains an invalid forwardRef wrapping).
examples/no-virtual.tsx Update example component ref usage (but currently contains an invalid forwardRef wrapping).
examples/animate.tsx Initialize listRef with null.
eslint.config.mjs Add ESLint flat config with TS/React/Jest integration (currently uses nonstandard import.meta.dirname).
.github/dependabot.yml Group npm and GitHub Actions updates.
.eslintrc.js Remove legacy ESLint config (replaced by flat config).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread examples/switch.tsx
);
));

const ForwardMyItem = React.forwardRef(MyItem as any);
Comment thread examples/no-virtual.tsx
};
});

const ForwardMyItem = React.forwardRef(MyItem as any);
Comment thread eslint.config.mjs
Comment on lines +90 to +92
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
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