chore: update eslint-plugin-react-hooks #9737
what a chore
Summary by CodeRabbit#
Bug Fixes
- Improved hydration reliability by syncing options after render, reducing edge-case issues during initial hydration.
- Corrected mutation state initialization to avoid false negatives on first render, ensuring accurate state tracking.
Chores
- Updated React Hooks ESLint plugin to the latest stable version.
- Aligned projects with the latest recommended React Hooks lint rules for compatibility and consistency.
- Cleaned up lint directives and test annotations without affecting runtime behavior.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: react-query-devtools
github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: react-query
github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: react-query-persist-client
github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: react-query-next-experimental
View your CI Pipeline Execution ↗ for commit 35b8f896273dcd095586782731148b62376119e7
Command Status Duration Result nx affected --targets=test:sherif,test:knip,tes...✅ Succeeded 4m 30s View ↗ nx run-many --target=build --exclude=examples/*...✅ Succeeded 1m 23s View ↗
☁️ Nx Cloud last updated this comment at
2025-10-08 11:28:50UTCWalkthrough#
ESLint configs across examples and packages were updated to migrate React Hooks plugin usage to recommended-latest, adjust rules, and remove legacy/react-compiler settings. Several lint directives in source and tests were added/updated. Two functional tweaks landed: optionsRef sync moved to useEffect in HydrationBoundary, and a null-based init guard in useMutationState.
Changes#
Cohort / File(s) Summary Examples: React ESLint cleanup examples/react/algolia/eslint.config.js,examples/react/basic/eslint.config.js,examples/react/basic-graphql-request/eslint.config.js,examples/react/shadow-dom/eslint.config.jsRemoved eslint-plugin-react-hooks import and config; dropped reactHooks.configs.recommendedand inlinereact-hooks/*rules from exports.Packages: ESLint react-hooks migration packages/react-query/eslint.config.js,packages/react-query-devtools/eslint.config.js,packages/react-query-next-experimental/eslint.config.js,packages/react-query-persist-client/eslint.config.jsSwitched to default import for react-hooks plugin; replaced configs.recommendedwithconfigs['recommended-latest'](with ts-expect-error); removedreact-hooks/react-compiler; addedreact-hooks/unsupported-syntaxandreact-hooks/incompatible-library; retainedexhaustive-depsandrules-of-hooks; minor additional rule tweaks in react-query tests block.Functional: Hydration timing packages/react-query/src/HydrationBoundary.tsxMoved optionsRef.currentassignment from render touseEffect; added targeted ESLint disable comments.Functional: Mutation state init guard packages/react-query/src/useMutationState.tsChanged initialization check from !result.currenttoresult.current === null.Lint directives in source/tests packages/react-query-next-experimental/src/HydrationStreamProvider.tsx,packages/react-query-persist-client/src/__tests__/PersistQueryClientProvider.test.tsx,packages/react-query/src/__tests__/useQuery.test.tsx,packages/react-query/src/__tests__/useSuspenseInfiniteQuery.test.tsx,packages/react-query/src/__tests__/useSuspenseQueries.test.tsx,packages/react-query/src/__tests__/useSuspenseQuery.test.tsx,packages/react-query/src/__tests__/useSuspenseQueries.test-d.tsxUpdated/added ESLint disable comments (immutability/purity), removed one disable in a test, adjusted a test name string, and modified a ref-init pattern in one test (null sentinel). No runtime logic changes except the ref-init in the test. Dependency bump package.jsonUpgraded eslint-plugin-react-hooksfrom^6.0.0-rc.2to^6.1.1.Sequence Diagram(s)#
sequenceDiagram autonumber actor U as App Component participant HB as HydrationBoundary participant QC as QueryClient U->>HB: Render with props.options note over HB: optionsRef.current not set during render HB-->>U: Render output rect rgb(236,248,255) note right of HB: After commit (useEffect) HB->>HB: optionsRef.current = props.options HB->>QC: hydrate(newQueries, optionsRef.current) QC-->>HB: Hydration complete endsequenceDiagram autonumber actor C as Component participant HMS as useMutationState participant MC as MutationCache C->>HMS: Call hook alt Initial render HMS->>HMS: if (result.current === null) init from MC end HMS->>MC: subscribe(listener) MC-->>HMS: notify on mutation changes HMS-->>C: Return current resultEstimated code review effort#
🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs#
- TanStack/query#9611 — Also touches useMutationState behavior/tests; relevant to the initialization change.
- TanStack/query#9671 — Updates eslint-plugin-react-hooks version; aligns with this plugin migration.
Suggested labels#
package: eslint-plugin-querySuggested reviewers#
- arnoud-dv
Poem#
I twitch my whiskers, configs align, From hooks of old to latest design. Options now wait till effects take hold, Mutations check for null—so bold. With lint soothed quiet, I hop with glee, Carrots, commits, and CI green for me! 🥕✨
Pre-merge checks and finishing touches#
❌ Failed checks (2 warnings)
Check name Status Explanation Resolution Description Check ⚠️ Warning The PR description consists only of the phrase “what a chore” and does not follow the repository’s required template sections for describing changes, confirming testing steps, or indicating release impact. Without the “🎯 Changes,” “✅ Checklist,” and “🚀 Release Impact” headings and content, reviewers lack critical information about the modifications, testing, and release considerations. As a result, it fails to meet the description guidelines. Please update the PR description to include the required “🎯 Changes,” “✅ Checklist,” and “🚀 Release Impact” sections from the template, detailing what was changed and why, confirming that tests were run, and specifying any release implications. Docstring Coverage ⚠️ Warning Docstring coverage is 10.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstringsto improve docstring coverage.✅ Passed checks (1 passed)
Check name Status Explanation Title Check ✅ Passed The title clearly summarizes the main change of updating the eslint-plugin-react-hooks dependency and related configurations across the repository. It is concise, follows conventional commit style, and provides enough context for reviewers to understand the primary purpose of the pull request. Therefore it meets the repository’s title guidelines. ✨ Finishing touches
- 📝 Generate docstrings
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Post copyable unit tests in a comment
- Commit unit tests in branch `feature/eslint-plugin-react-hooks`
Comment `@coderabbitai help` to get the list of available commands and usage tips.More templates
- @tanstack/query-example-angular-auto-refetching
- @tanstack/query-example-angular-basic
- @tanstack/query-example-angular-basic-persister
- @tanstack/query-example-angular-devtools-panel
- @tanstack/query-example-angular-infinite-query-with-max-pages
- @tanstack/query-example-angular-optimistic-updates
- @tanstack/query-example-angular-pagination
- @tanstack/query-example-angular-query-options-from-a-service
- @tanstack/query-example-angular-router
- @tanstack/query-example-angular-rxjs
- @tanstack/query-example-angular-simple
- @tanstack/query-example-solid-astro
- @tanstack/query-example-solid-basic
- @tanstack/query-example-solid-basic-graphql-request
- @tanstack/query-example-solid-default-query-function
- @tanstack/query-example-solid-simple
- @tanstack/query-example-solid-start-streaming
- @tanstack/query-example-react-algolia
- @tanstack/query-example-react-auto-refetching
- @tanstack/query-example-react-basic
- @tanstack/query-example-react-basic-graphql-request
- @tanstack/query-example-chat
- @tanstack/query-example-react-default-query-function
- @tanstack/query-example-react-devtools-panel
- @tanstack/query-example-eslint-legacy
- @tanstack/query-example-react-infinite-query-with-max-pages
- @tanstack/query-example-react-load-more-infinite-scroll
- @tanstack/query-example-react-nextjs
- @tanstack/query-example-react-nextjs-app-prefetching
- @tanstack/query-example-nextjs-suspense-streaming
- @tanstack/query-example-react-offline
- @tanstack/query-example-react-optimistic-updates-cache
- @tanstack/query-example-react-optimistic-updates-ui
- @tanstack/query-example-react-pagination
- @tanstack/query-example-react-playground
- @tanstack/query-example-react-prefetching
- @tanstack/query-example-react-react-native
- @tanstack/query-example-react-router
- @tanstack/query-example-react-rick-morty
- @tanstack/query-example-react-shadow-dom
- @tanstack/query-example-react-simple
- @tanstack/query-example-react-star-wars
- @tanstack/query-example-react-suspense
- @tanstack/query-example-svelte-auto-refetching
- @tanstack/query-example-svelte-basic
- @tanstack/query-example-svelte-load-more-infinite-scroll
- @tanstack/query-example-svelte-optimistic-updates
- @tanstack/query-example-svelte-playground
- @tanstack/query-example-svelte-simple
- @tanstack/query-example-svelte-ssr
- @tanstack/query-example-svelte-star-wars
- @tanstack/query-example-vue-2.6-basic
- @tanstack/query-example-vue-2.7-basic
- @tanstack/query-example-vue-basic
- @tanstack/query-example-vue-dependent-queries
- @tanstack/query-example-vue-nuxt3
- @tanstack/query-example-vue-persister
- @tanstack/query-example-vue-simple
@tanstack/angular-query-experimental
npm i https://pkg.pr.new/@tanstack/angular-query-experimental@9737@tanstack/eslint-plugin-query
npm i https://pkg.pr.new/@tanstack/eslint-plugin-query@9737@tanstack/query-async-storage-persister
npm i https://pkg.pr.new/@tanstack/query-async-storage-persister@9737@tanstack/query-broadcast-client-experimental
npm i https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@9737@tanstack/query-core
npm i https://pkg.pr.new/@tanstack/query-core@9737@tanstack/query-devtools
npm i https://pkg.pr.new/@tanstack/query-devtools@9737@tanstack/query-persist-client-core
npm i https://pkg.pr.new/@tanstack/query-persist-client-core@9737@tanstack/query-sync-storage-persister
npm i https://pkg.pr.new/@tanstack/query-sync-storage-persister@9737@tanstack/react-query
npm i https://pkg.pr.new/@tanstack/react-query@9737@tanstack/react-query-devtools
npm i https://pkg.pr.new/@tanstack/react-query-devtools@9737@tanstack/react-query-next-experimental
npm i https://pkg.pr.new/@tanstack/react-query-next-experimental@9737@tanstack/react-query-persist-client
npm i https://pkg.pr.new/@tanstack/react-query-persist-client@9737@tanstack/solid-query
npm i https://pkg.pr.new/@tanstack/solid-query@9737@tanstack/solid-query-devtools
npm i https://pkg.pr.new/@tanstack/solid-query-devtools@9737@tanstack/solid-query-persist-client
npm i https://pkg.pr.new/@tanstack/solid-query-persist-client@9737@tanstack/svelte-query
npm i https://pkg.pr.new/@tanstack/svelte-query@9737@tanstack/svelte-query-devtools
npm i https://pkg.pr.new/@tanstack/svelte-query-devtools@9737@tanstack/svelte-query-persist-client
npm i https://pkg.pr.new/@tanstack/svelte-query-persist-client@9737@tanstack/vue-query
npm i https://pkg.pr.new/@tanstack/vue-query@9737@tanstack/vue-query-devtools
npm i https://pkg.pr.new/@tanstack/vue-query-devtools@9737commit:
35b8f89Codecov Report#
:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 45.51%. Comparing base (
9f82d8e) to head (35b8f89). :warning: Report is 1 commits behind head on main.Additional details and impacted files
@@ Coverage Diff @@ ## main #9737 +/- ## ======================================= Coverage 45.51% 45.51% ======================================= Files 196 196 Lines 8323 8324 +1 Branches 1894 1898 +4 ======================================= + Hits 3788 3789 +1 Misses 4093 4093 Partials 442 442- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
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 (1)
packages/react-query/src/__tests__/useQuery.test.tsx (1)
6687-6688: Remove or correct invalid ESLint disable comment The rulereact-hooks/immutabilityisn’t defined in your ESLint config; update to a valid rule or remove the comment.🧹 Nitpick comments (1)
packages/react-query/src/HydrationBoundary.tsx (1)
34-36: Add dependency array for efficiency.The useEffect runs after every render without a dependency array. Consider adding
[options]to only update the ref when options actually change:-React.useEffect(() => { - optionsRef.current = options -}) +React.useEffect(() => { + optionsRef.current = options +}, [options])This avoids unnecessary effect executions and makes the intent clearer.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between 9f82d8e56f00889db76729db03393bf972bef5c0 and 35b8f896273dcd095586782731148b62376119e7.
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (18)
examples/react/algolia/eslint.config.js(0 hunks)examples/react/basic-graphql-request/eslint.config.js(0 hunks)examples/react/basic/eslint.config.js(0 hunks)examples/react/shadow-dom/eslint.config.js(0 hunks)package.json(1 hunks)packages/react-query-devtools/eslint.config.js(1 hunks)packages/react-query-next-experimental/eslint.config.js(1 hunks)packages/react-query-next-experimental/src/HydrationStreamProvider.tsx(2 hunks)packages/react-query-persist-client/eslint.config.js(1 hunks)packages/react-query-persist-client/src/__tests__/PersistQueryClientProvider.test.tsx(0 hunks)packages/react-query/eslint.config.js(1 hunks)packages/react-query/src/HydrationBoundary.tsx(2 hunks)packages/react-query/src/__tests__/useQuery.test.tsx(2 hunks)packages/react-query/src/__tests__/useSuspenseInfiniteQuery.test.tsx(1 hunks)packages/react-query/src/__tests__/useSuspenseQueries.test-d.tsx(1 hunks)packages/react-query/src/__tests__/useSuspenseQueries.test.tsx(2 hunks)packages/react-query/src/__tests__/useSuspenseQuery.test.tsx(1 hunks)packages/react-query/src/useMutationState.ts(1 hunks)
💤 Files with no reviewable changes (5)
- examples/react/algolia/eslint.config.js
- examples/react/shadow-dom/eslint.config.js
- packages/react-query-persist-client/src/tests/PersistQueryClientProvider.test.tsx
- examples/react/basic-graphql-request/eslint.config.js
- examples/react/basic/eslint.config.js
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Preview
- GitHub Check: Test
🔇 Additional comments (17)
packages/react-query/src/__tests__/useSuspenseQueries.test.tsx (2)
261-262: LGTM! Appropriate test-specific suppression.The
react-hooks/puritysuppression is correct here. The test intentionally usesMath.random()to generate a unique identifier per component instance, verifying that the same component persists across multiple promise resolutions.
669-670: LGTM! Clever pattern for runtime validation testing.The suppression is appropriate. The
Math.random() >= 0condition is always true at runtime, but TypeScript cannot statically determine this, allowing the test to verify runtime error handling forskipTokenwithout triggering compile-time type errors.packages/react-query/src/__tests__/useSuspenseInfiniteQuery.test.tsx (1)
28-29: LGTM! Consistent with skipToken validation pattern.The
react-hooks/puritysuppression is appropriate. This follows the same pattern as other skipToken tests: usingMath.random() >= 0to create a condition that's always true at runtime but allows testing runtime validation without TypeScript interference.packages/react-query/src/__tests__/useSuspenseQuery.test.tsx (1)
878-879: LGTM! Consistent skipToken validation testing.The
react-hooks/puritysuppression is appropriate and consistent with the pattern used in other test files for validating runtimeskipTokenerror handling.packages/react-query/src/useMutationState.ts (1)
49-49: LGTM! More explicit initialization guard.The change from
!result.currenttoresult.current === nullmakes the initialization check more precise and intentional. Since the ref is initialized withnull, this explicit equality check avoids potential false positives from other falsy values and clearly communicates thatnullis the uninitialized sentinel.packages/react-query/src/HydrationBoundary.tsx (1)
94-95: LGTM! Eslint-disable is justified.The
react-hooks/refsdisable is appropriate here. The ref pattern intentionally avoids addingoptionsto theuseMemodependencies to prevent re-computation on options changes (as explained in the comments above).Note: If
clientorstatechanges at the same momentoptionschanges, theuseMemowill execute during render with the previous render'soptionsvalue (before theuseEffecton lines 34-36 updatesoptionsRef.current). Sincehydrateis idempotent (line 93 comment), this timing is likely safe, but keep in mind that the options used here may lag by one render in that edge case.package.json (1)
57-57: LGTM!The upgrade from RC (
^6.0.0-rc.2) to stable (^6.1.1) is appropriate and aligns with the corresponding ESLint config migrations across the repository.packages/react-query-next-experimental/src/HydrationStreamProvider.tsx (2)
133-133: LGTM!The lint directive correctly updated from
react-hooks/react-compilertoreact-hooks/immutability, reflecting the rule changes in eslint-plugin-react-hooks ^6.1.1. The suppression is appropriate for the intentional stream flush viastream.length = 0.
172-172: LGTM!The lint directive correctly updated from
react-hooks/react-compilertoreact-hooks/immutability. The suppression is appropriate for the intentional mutation ofwin[id]to set up the client-side hydration handler.packages/react-query-devtools/eslint.config.js (3)
4-4: LGTM!Import style correctly updated to default import, matching the new export structure of eslint-plugin-react-hooks ^6.1.1.
18-19: LGTM!The new rules
unsupported-syntaxandincompatible-libraryare appropriate additions from eslint-plugin-react-hooks ^6.1.1, replacing the previousreact-compilerrule.
9-10: Confirm necessity of@ts-expect-errorThe directive suppresses a type error when spreadingreactHooks.configs['recommended-latest']. Verify locally againsteslint-plugin-react-hooks@6.1.1typings and remove the workaround once the upstream type issue is resolved.packages/react-query-next-experimental/eslint.config.js (1)
4-4: LGTM!ESLint config changes are consistent with the eslint-plugin-react-hooks ^6.1.1 upgrade: default import,
recommended-latestconfig, and new rules (unsupported-syntax,incompatible-library). The samets-expect-errortype workaround applies here as in other package configs.Also applies to: 9-10, 18-19
packages/react-query/eslint.config.js (2)
4-4: LGTM!ESLint config changes are consistent with the eslint-plugin-react-hooks ^6.1.1 upgrade: default import,
recommended-latestconfig, and new rules (unsupported-syntax,incompatible-library).Also applies to: 9-10, 18-19
25-25: LGTM!Disabling
@eslint-react/dom/no-missing-button-typein test files is reasonable, as test code often uses simplified button elements without explicit types.packages/react-query-persist-client/eslint.config.js (2)
4-4: Default ES import is correct foreslint-plugin-react-hooksThe plugin’smainentry (index.js) exports via CommonJS, soimport reactHooks from 'eslint-plugin-react-hooks'works as expected.
18-19: Plugin v6.1.1 includes both rules The rules react-hooks/unsupported-syntax and react-hooks/incompatible-library are valid in eslint-plugin-react-hooks@^6.1.1.@@ -1,9 +1,10 @@11 // @ts-check2233 import pluginReact from '@eslint-react/eslint-plugin'4-import * as reactHooks from 'eslint-plugin-react-hooks'4+import reactHooks from 'eslint-plugin-react-hooks'55 import rootConfig from './root.eslint.config.js'6677 export default [88 ...rootConfig,9- reactHooks.configs.recommended,9+ // @ts-expect-error wtf10+ ...reactHooks.configs['recommended-latest'],⚠️ Potential issue | 🟡 Minor
Replace unprofessional comment with a clear explanation.
The comment "wtf" is unprofessional and doesn't explain why the type error is being suppressed. Replace it with a clear explanation of the type issue.
- // @ts-expect-error wtf + // @ts-expect-error - recommended-latest config has incomplete type definitions ...reactHooks.configs['recommended-latest'],📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Suggested change9- // @ts-expect-error wtf10- ...reactHooks.configs['recommended-latest'],9+ // @ts-expect-error - recommended-latest config has incomplete type definitions10+ ...reactHooks.configs['recommended-latest'],🤖 Prompt for AI Agents
In packages/react-query-persist-client/eslint.config.js around lines 9 to 10, replace the unprofessional "// @ts-expect-error wtf" comment with a concise, professional explanation of the suppression: state which type incompatibility or declaration mismatch is happening (e.g., that reactHooks.configs['recommended-latest'] has an incompatible or missing type declaration for this project's ESLint config), why the suppression is necessary (to accept the runtime shape despite TypeScript complaining), and include a TODO linking to an issue or task to resolve the typing mismatch later; keep it short and informative.@@ -6162,6 +6162,7 @@61626162 },61636163 })616461646165+ const mounted = React.useRef<boolean>(null)61656166 // this simulates a synchronous update between the time the query is created61666167 // and the time it is subscribed to that could be missed otherwise6167- if (!mounted.current) {6168+ if (mounted.current === null) {⚠️ Potential issue | 🔴 Critical
Fix type annotation for null initialization.
The ref is typed as
React.useRef<boolean>but initialized withnull. This is a type mismatch that violates TypeScript's type safety.Apply this diff to correct the type:
- const mounted = React.useRef<boolean>(null) + const mounted = React.useRef<boolean | null>(null)The usage pattern (initialize with
null, then set totrue) requires the union typeboolean | nullto properly represent all possible values the ref can hold.📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Suggested change6165- const mounted = React.useRef<boolean>(null)6166- // this simulates a synchronous update between the time the query is created6167- // and the time it is subscribed to that could be missed otherwise6168- if (mounted.current === null) {6165+ const mounted = React.useRef<boolean | null>(null)6166+ // this simulates a synchronous update between the time the query is created6167+ // and the time it is subscribed to that could be missed otherwise6168+ if (mounted.current === null) {🤖 Prompt for AI Agents
In packages/react-query/src/__tests__/useQuery.test.tsx around lines 6165 to 6168, the ref is declared as React.useRef<boolean> but initialized with null causing a TypeScript type mismatch; update the ref's generic type to include null (boolean | null) so it can be initialized with null and later set to true, e.g., change the declaration to useRef<boolean | null>(null).@@ -236,4 +236,4 @@236236 )237237 })238238239- it('should not show type error when using spreaded queryOptions', () => {239+ it('should not show type error when using rest queryOptions', () => {⚠️ Potential issue | 🟡 Minor
Use correct terminology: "spread", not "rest".
This test uses object spread (
...queryOptions(...)), not a rest pattern. Reword the description for clarity.- it('should not show type error when using rest queryOptions', () => { + it('should not show type error when spreading queryOptions', () => {📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Suggested change239- it('should not show type error when using rest queryOptions', () => {239+ it('should not show type error when spreading queryOptions', () => {🤖 Prompt for AI Agents
In packages/react-query/src/__tests__/useSuspenseQueries.test-d.tsx around line 239, the test description uses the incorrect term "rest queryOptions"; update the test name to use "spread" (e.g., change "rest queryOptions" to "spread queryOptions") so it accurately describes that object spread is being used in the test.- @@ -1,9 +1,9 @@11 // @ts-check2233 import pluginReact from '@eslint-react/eslint-plugin'4-import * as reactHooks from 'eslint-plugin-react-hooks'4+import reactHooks from 'eslint-plugin-react-hooks'55 import rootConfig from './root.eslint.config.js'6677 export default [88 ...rootConfig,9- reactHooks.configs.recommended,9+ // @ts-expect-error wtf
drive-by comment as I saw your posts on Bluesky...
if you hadn't already come across it, thought it'd be helpful to point to https://github.com/facebook/react/issues/34745, which explains (some of?) the type issues with integrating the plugin's config (and the expect error overrides you needed).
Issue was closed but the fix hasn't been published yet. You may have a better time with integration once it is 😄
ts-expect-error should go away if the types become correct
TkDodo merged thisf4a0cd5
TkDodo closed this
Sign in to join this conversation.
⚠️ No Changeset found#
Latest commit: 35b8f896273dcd095586782731148b62376119e7
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR