diff --git a/packages-internal/test-utils/src/mochaHooks.test.js b/packages-internal/test-utils/src/mochaHooks.test.js index 6d896768fee33b..2628a7a0543d68 100644 --- a/packages-internal/test-utils/src/mochaHooks.test.js +++ b/packages-internal/test-utils/src/mochaHooks.test.js @@ -69,6 +69,7 @@ describe('mochaHooks', () => { let unsafeSetState; function Parent() { const [state, setState] = React.useState(0); + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- unsafeSetState is required outside the component unsafeSetState = setState; React.useEffect(() => {}); diff --git a/test/regressions/TestViewer.js b/test/regressions/TestViewer.js index a4985b0849cfc2..ec2c6dbff42d7c 100644 --- a/test/regressions/TestViewer.js +++ b/test/regressions/TestViewer.js @@ -30,6 +30,7 @@ function TestViewer(props) { document.fonts.addEventListener('loadingdone', handleFontsEvent); // Use a "real timestamp" so that we see a useful date instead of "00:00" + // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- useFakeTimers is not a React hook // eslint-disable-next-line react-hooks/rules-of-hooks -- not a React hook const clock = useFakeTimers({ now: new Date('Mon Aug 18 14:11:54 2014 -0500'),