Skip to content

Commit

Permalink
fix(examples): Ignore eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
saltyshiomix committed Sep 26, 2023
1 parent 6f63d60 commit 162921d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/with-material-ui/renderer/components/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -66,6 +67,7 @@ function Link(props: LinkProps) {
)
}

// eslint-disable-next-line react/display-name
export default React.forwardRef<HTMLAnchorElement, LinkProps>((props, ref) => (
<Link {...props} innerRef={ref} />
))
1 change: 1 addition & 0 deletions examples/with-material-ui/renderer/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <App emotionCache={cache} {...props} />
Expand Down

0 comments on commit 162921d

Please sign in to comment.