1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 18:06:38 -04:00

add typescript eslint parser/rules

This commit is contained in:
2022-01-10 13:46:49 -05:00
parent 4a461b78dd
commit b552b6ae64
5 changed files with 70 additions and 5 deletions

View File

@ -16,7 +16,7 @@ const ColorLink = ({ href, title, lightColor, darkColor, external = false, child
external = external || isAbsoluteUrl(href);
// spits out a translucent color in rgba() format that's compatible with linear-gradient()
const hexToRgba = (hex: string, alpha: number = 0.4) => hexRgb(hex, { alpha, format: "css" });
const hexToRgba = (hex: string, alpha = 0.4) => hexRgb(hex, { alpha, format: "css" });
return (
<Link href={href} passHref={true} prefetch={false}>