From 162921dcf192d06c25cafaaf52d3fa6240ba725e Mon Sep 17 00:00:00 2001 From: Shiono Yoshihide Date: Tue, 26 Sep 2023 14:53:06 +0900 Subject: [PATCH] fix(examples): Ignore eslint errors --- examples/with-material-ui/renderer/components/Link.tsx | 2 ++ examples/with-material-ui/renderer/pages/_document.tsx | 1 + 2 files changed, 3 insertions(+) diff --git a/examples/with-material-ui/renderer/components/Link.tsx b/examples/with-material-ui/renderer/components/Link.tsx index 99d9f1c9..18101670 100644 --- a/examples/with-material-ui/renderer/components/Link.tsx +++ b/examples/with-material-ui/renderer/components/Link.tsx @@ -39,6 +39,7 @@ function Link(props: LinkProps) { } = props const router = useRouter() + // eslint-disable-next-line @typescript-eslint/no-explicit-any const pathname = typeof href === 'string' ? href : (href as any).pathname const className = clsx(classNameProps, { [activeClassName]: router.pathname === pathname && activeClassName, @@ -66,6 +67,7 @@ function Link(props: LinkProps) { ) } +// eslint-disable-next-line react/display-name export default React.forwardRef((props, ref) => ( )) diff --git a/examples/with-material-ui/renderer/pages/_document.tsx b/examples/with-material-ui/renderer/pages/_document.tsx index 8a866904..fd13fafb 100644 --- a/examples/with-material-ui/renderer/pages/_document.tsx +++ b/examples/with-material-ui/renderer/pages/_document.tsx @@ -57,6 +57,7 @@ MyDocument.getInitialProps = async (ctx) => { ctx.renderPage = () => originalRenderPage({ + // eslint-disable-next-line @typescript-eslint/no-explicit-any enhanceApp: (App: any) => function EnhanceApp(props) { return