1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-05-15 21:34:26 -04:00

finally bump eslint to 9.x

This commit is contained in:
2025-01-16 10:54:19 -05:00
parent 70f86283a7
commit e97613dda5
8 changed files with 1326 additions and 1188 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ export type HeadingProps = ComponentPropsWithoutRef<typeof H> & {
const Heading = ({ level, id, divider, children, ...rest }: HeadingProps) => {
return (
<H as={`h${level}`} id={id} divider={divider || level === 2} {...rest}>
<H as={`h${level}` as keyof JSX.IntrinsicElements} id={id} divider={divider || level === 2} {...rest}>
{children}
{/* add anchor link to H2s and H3s. ID is either provided or automatically generated by rehype-slug. */}