chore: update maintenance dependencies#717
Conversation
|
Deployment failed with the following error: Learn More: https://vercel.com/react-component?upgradeToPro=build-rate-limit |
|
Warning Review limit reached
Next review available in: 57 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 selected for processing (8)
✨ 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. |
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
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, introduces a flat ESLint configuration, and adds global type definitions. Feedback on these changes highlights several areas for improvement: disabling strict type-checking in tsconfig.json reduces type safety and should be avoided; declaring testing globals as any in global.d.ts overrides type-safe Jest declarations; polyfilling the deprecated hydrate function in react-compat.d.ts should be replaced with a migration to hydrateRoot; and disabling the removed @typescript-eslint/ban-types rule in eslint.config.mjs will cause ESLint errors and should be removed.
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.
| "noImplicitAny": false, | ||
| "strictNullChecks": false, | ||
| "strictPropertyInitialization": false, | ||
| "strictFunctionTypes": false, | ||
| "strict": false, | ||
| "noImplicitThis": false, | ||
| "strictBindCallApply": false |
There was a problem hiding this comment.
Disabling strict type-checking options (strict: false, strictNullChecks: false, noImplicitAny: false, etc.) significantly reduces type safety and can introduce silent runtime bugs (such as dereferencing null or undefined). It is highly recommended to keep strict: true enabled and resolve any type errors directly, especially when upgrading to TypeScript 6 and React 19.
"strict": true| declare const describe: any; | ||
| declare const it: any; | ||
| declare const test: any; | ||
| declare const beforeEach: any; | ||
| declare const afterEach: any; | ||
| declare const beforeAll: any; | ||
| declare const afterAll: any; | ||
| declare const expect: any; |
There was a problem hiding this comment.
Declaring testing globals (describe, it, test, expect, etc.) as any overrides the robust, type-safe declarations provided by @types/jest (which is referenced at the top of this file). This disables autocomplete and type safety in your test files. If you are using Jest, these declarations should be removed entirely to let @types/jest provide the correct types.
| declare const describe: any; | |
| declare const it: any; | |
| declare const test: any; | |
| declare const beforeEach: any; | |
| declare const afterEach: any; | |
| declare const beforeAll: any; | |
| declare const afterAll: any; | |
| declare const expect: any; | |
| // Globals are provided by @types/jest |
| declare module 'react-dom' { | ||
| function hydrate(element: React.ReactNode, container: Element | DocumentFragment): void; | ||
| } |
There was a problem hiding this comment.
The hydrate function has been deprecated since React 18 and is completely removed in React 19. Instead of polyfilling its type definition in react-compat.d.ts, it is highly recommended to update the codebase and tests to use hydrateRoot from react-dom/client to ensure compatibility with React 19.
// Use hydrateRoot from react-dom/client instead of hydrate| rules: { | ||
| '@typescript-eslint/ban-types': 'off', | ||
| '@typescript-eslint/no-empty-object-type': 'off', | ||
| '@typescript-eslint/no-unsafe-function-type': 'off', | ||
| '@typescript-eslint/no-unused-vars': 'off', | ||
| }, |
There was a problem hiding this comment.
The rule @typescript-eslint/ban-types has been completely removed in @typescript-eslint v8. Setting it to 'off' here will cause ESLint to throw an error because the rule is no longer defined by the plugin. Since you have already disabled the replacement rules (@typescript-eslint/no-empty-object-type and @typescript-eslint/no-unsafe-function-type), you should remove @typescript-eslint/ban-types entirely.
rules: {
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-unsafe-function-type': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
Summary
Test Plan