chore(deps-dev): update eslint to v9 (#147)

This commit is contained in:
Marco Pasqualetti
2024-12-01 10:07:35 +01:00
committed by GitHub
parent 5fc68a1926
commit 11d425faa9
42 changed files with 665 additions and 504 deletions
+5 -4
View File
@@ -1,9 +1,10 @@
import * as React from 'react'
import { useRouter } from '../hooks/useRouter'
import type { AnchorHTMLAttributes, MouseEvent } from 'react'
import useRoute from '../hooks/useRoute'
import type { AnchorHTMLAttributes } from 'react'
import { useInView } from 'react-intersection-observer'
import { useRouter } from '../hooks/useRouter'
import useRoute from '../hooks/useRoute'
interface TuonoLinkProps {
/**
* If "true" the route gets loaded when the link enters the viewport. Default "true"
@@ -28,7 +29,7 @@ export default function Link(
triggerOnce: true,
})
const handleTransition = (e: MouseEvent<HTMLAnchorElement>): void => {
const handleTransition: React.MouseEventHandler<HTMLAnchorElement> = (e) => {
e.preventDefault()
props.onClick?.(e)