@@ -533,7 +533,7 @@ ruleTester.run('no-deprecated', rule, {
533533 '18.0.0' ,
534534 'createRoot' ,
535535 'https://reactjs.org/link/switch-to-createroot' ,
536- { type : 'ImportDeclaration ' , line : 2 , column : 9 }
536+ { type : 'ImportSpecifier ' , line : 2 , column : 18 }
537537 ) ,
538538 errorMessage (
539539 'ReactDOM.render' ,
@@ -555,7 +555,7 @@ ruleTester.run('no-deprecated', rule, {
555555 '18.0.0' ,
556556 'hydrateRoot' ,
557557 'https://reactjs.org/link/switch-to-createroot' ,
558- { type : 'ImportDeclaration ' , line : 2 , column : 9 }
558+ { type : 'ImportSpecifier ' , line : 2 , column : 18 }
559559 ) ,
560560 errorMessage (
561561 'ReactDOM.hydrate' ,
@@ -577,7 +577,7 @@ ruleTester.run('no-deprecated', rule, {
577577 '18.0.0' ,
578578 'root.unmount' ,
579579 'https://reactjs.org/link/switch-to-createroot' ,
580- { type : 'ImportDeclaration ' , line : 2 , column : 9 }
580+ { type : 'ImportSpecifier ' , line : 2 , column : 18 }
581581 ) ,
582582 errorMessage (
583583 'ReactDOM.unmountComponentAtNode' ,
@@ -599,7 +599,7 @@ ruleTester.run('no-deprecated', rule, {
599599 '18.0.0' ,
600600 'renderToPipeableStream' ,
601601 'https://reactjs.org/docs/react-dom-server.html#rendertonodestream' ,
602- { type : 'ImportDeclaration ' , line : 2 , column : 9 }
602+ { type : 'ImportSpecifier ' , line : 2 , column : 18 }
603603 ) ,
604604 errorMessage (
605605 'ReactDOMServer.renderToNodeStream' ,
0 commit comments