@@ -384,17 +384,15 @@ describe('queryClient', () => {
384384
385385 it ( 'should resolve with the data type' , async ( ) => {
386386 const queryClient = new QueryClient ( )
387- // grandfathered direct test
388- // eslint-disable-next-line no-restricted-syntax
387+ // eslint-disable-next-line no-restricted-syntax -- grandfathered direct test
389388 const data = await queryClient . fetchQuery ( typedQueryOptions )
390389
391390 expectTypeOf ( data ) . toEqualTypeOf < TypedData > ( )
392391 } )
393392
394393 it ( 'should resolve with unknown when untyped' , async ( ) => {
395394 const queryClient = new QueryClient ( )
396- // grandfathered direct test
397- // eslint-disable-next-line no-restricted-syntax
395+ // eslint-disable-next-line no-restricted-syntax -- grandfathered direct test
398396 const data = await queryClient . fetchQuery ( untypedQueryOptions )
399397
400398 expectTypeOf ( data ) . toEqualTypeOf < unknown > ( )
@@ -419,8 +417,7 @@ describe('queryClient', () => {
419417 } )
420418
421419 it ( 'should allow passing pages' , async ( ) => {
422- // grandfathered direct test
423- // eslint-disable-next-line no-restricted-syntax
420+ // eslint-disable-next-line no-restricted-syntax -- grandfathered direct test
424421 const data = await new QueryClient ( ) . fetchInfiniteQuery ( {
425422 queryKey : queryKey ( ) ,
426423 queryFn : ( ) => Promise . resolve ( 'string' ) ,
@@ -457,8 +454,7 @@ describe('queryClient', () => {
457454
458455 it ( 'should resolve with InfiniteData of the data type' , async ( ) => {
459456 const queryClient = new QueryClient ( )
460- // grandfathered direct test
461- // eslint-disable-next-line no-restricted-syntax
457+ // eslint-disable-next-line no-restricted-syntax -- grandfathered direct test
462458 const data = await queryClient . fetchInfiniteQuery (
463459 typedFetchInfiniteQueryOptions ,
464460 )
@@ -468,8 +464,7 @@ describe('queryClient', () => {
468464
469465 it ( 'should resolve with InfiniteData of unknown when untyped' , async ( ) => {
470466 const queryClient = new QueryClient ( )
471- // grandfathered direct test
472- // eslint-disable-next-line no-restricted-syntax
467+ // eslint-disable-next-line no-restricted-syntax -- grandfathered direct test
473468 const data = await queryClient . fetchInfiniteQuery (
474469 untypedFetchInfiniteQueryOptions ,
475470 )
@@ -528,17 +523,15 @@ describe('queryClient', () => {
528523 describe ( 'ensureQueryData' , ( ) => {
529524 it ( 'should resolve with the data type' , async ( ) => {
530525 const queryClient = new QueryClient ( )
531- // grandfathered direct test
532- // eslint-disable-next-line no-restricted-syntax
526+ // eslint-disable-next-line no-restricted-syntax -- grandfathered direct test
533527 const data = await queryClient . ensureQueryData ( typedQueryOptions )
534528
535529 expectTypeOf ( data ) . toEqualTypeOf < TypedData > ( )
536530 } )
537531
538532 it ( 'should resolve with unknown when untyped' , async ( ) => {
539533 const queryClient = new QueryClient ( )
540- // grandfathered direct test
541- // eslint-disable-next-line no-restricted-syntax
534+ // eslint-disable-next-line no-restricted-syntax -- grandfathered direct test
542535 const data = await queryClient . ensureQueryData ( untypedQueryOptions )
543536
544537 expectTypeOf ( data ) . toEqualTypeOf < unknown > ( )
@@ -653,8 +646,7 @@ describe('queryClient', () => {
653646 describe ( 'ensureInfiniteQueryData' , ( ) => {
654647 it ( 'should resolve with InfiniteData of the data type' , async ( ) => {
655648 const queryClient = new QueryClient ( )
656- // grandfathered direct test
657- // eslint-disable-next-line no-restricted-syntax
649+ // eslint-disable-next-line no-restricted-syntax -- grandfathered direct test
658650 const data = await queryClient . ensureInfiniteQueryData (
659651 typedFetchInfiniteQueryOptions ,
660652 )
@@ -664,8 +656,7 @@ describe('queryClient', () => {
664656
665657 it ( 'should resolve with InfiniteData of unknown when untyped' , async ( ) => {
666658 const queryClient = new QueryClient ( )
667- // grandfathered direct test
668- // eslint-disable-next-line no-restricted-syntax
659+ // eslint-disable-next-line no-restricted-syntax -- grandfathered direct test
669660 const data = await queryClient . ensureInfiniteQueryData (
670661 untypedFetchInfiniteQueryOptions ,
671662 )
@@ -676,8 +667,7 @@ describe('queryClient', () => {
676667 it ( 'should accept a revalidateIfStale that FetchInfiniteQueryOptions does not have' , ( ) => {
677668 const queryClient = new QueryClient ( )
678669
679- // grandfathered direct test
680- // eslint-disable-next-line no-restricted-syntax
670+ // eslint-disable-next-line no-restricted-syntax -- grandfathered direct test
681671 queryClient . ensureInfiniteQueryData ( {
682672 ...typedFetchInfiniteQueryOptions ,
683673 revalidateIfStale : true ,
@@ -949,8 +939,7 @@ describe('queryClient', () => {
949939 describe ( 'prefetchQuery' , ( ) => {
950940 it ( 'should return a promise of void rather than the data' , ( ) => {
951941 const queryClient = new QueryClient ( )
952- // grandfathered direct test
953- // eslint-disable-next-line no-restricted-syntax
942+ // eslint-disable-next-line no-restricted-syntax -- grandfathered direct test
954943 const result = queryClient . prefetchQuery ( {
955944 queryKey : [ 'key' ] ,
956945 queryFn : ( ) => Promise . resolve ( 'string' ) ,
@@ -963,8 +952,7 @@ describe('queryClient', () => {
963952 describe ( 'prefetchInfiniteQuery' , ( ) => {
964953 it ( 'should return a promise of void rather than the pages' , ( ) => {
965954 const queryClient = new QueryClient ( )
966- // grandfathered direct test
967- // eslint-disable-next-line no-restricted-syntax
955+ // eslint-disable-next-line no-restricted-syntax -- grandfathered direct test
968956 const result = queryClient . prefetchInfiniteQuery ( {
969957 queryKey : [ 'key' ] ,
970958 queryFn : ( ) => Promise . resolve ( 'string' ) ,
0 commit comments