@@ -533,7 +533,7 @@ ruleTester.run('no-deprecated', rule, {
533
533
'18.0.0' ,
534
534
'createRoot' ,
535
535
'https://reactjs.org/link/switch-to-createroot' ,
536
- { type : 'ImportDeclaration ' , line : 2 , column : 9 }
536
+ { type : 'ImportSpecifier ' , line : 2 , column : 18 }
537
537
) ,
538
538
errorMessage (
539
539
'ReactDOM.render' ,
@@ -555,7 +555,7 @@ ruleTester.run('no-deprecated', rule, {
555
555
'18.0.0' ,
556
556
'hydrateRoot' ,
557
557
'https://reactjs.org/link/switch-to-createroot' ,
558
- { type : 'ImportDeclaration ' , line : 2 , column : 9 }
558
+ { type : 'ImportSpecifier ' , line : 2 , column : 18 }
559
559
) ,
560
560
errorMessage (
561
561
'ReactDOM.hydrate' ,
@@ -577,7 +577,7 @@ ruleTester.run('no-deprecated', rule, {
577
577
'18.0.0' ,
578
578
'root.unmount' ,
579
579
'https://reactjs.org/link/switch-to-createroot' ,
580
- { type : 'ImportDeclaration ' , line : 2 , column : 9 }
580
+ { type : 'ImportSpecifier ' , line : 2 , column : 18 }
581
581
) ,
582
582
errorMessage (
583
583
'ReactDOM.unmountComponentAtNode' ,
@@ -599,7 +599,7 @@ ruleTester.run('no-deprecated', rule, {
599
599
'18.0.0' ,
600
600
'renderToPipeableStream' ,
601
601
'https://reactjs.org/docs/react-dom-server.html#rendertonodestream' ,
602
- { type : 'ImportDeclaration ' , line : 2 , column : 9 }
602
+ { type : 'ImportSpecifier ' , line : 2 , column : 18 }
603
603
) ,
604
604
errorMessage (
605
605
'ReactDOMServer.renderToNodeStream' ,
0 commit comments