From b45c9182fd18c1353ec56082fcb8761f17c45260 Mon Sep 17 00:00:00 2001 From: cswimr Date: Sun, 29 Dec 2024 16:45:16 -0500 Subject: [PATCH] refactor(tailwindcss): remove a useless variable declaration --- src/tailwindcss/src/search-documentation.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/tailwindcss/src/search-documentation.tsx b/src/tailwindcss/src/search-documentation.tsx index 209dcd1..1f45c4f 100644 --- a/src/tailwindcss/src/search-documentation.tsx +++ b/src/tailwindcss/src/search-documentation.tsx @@ -3,10 +3,6 @@ import React, { ReactElement, useState } from "react"; import documentation from "./documentation/tailwind-css"; import open from "../../../utils/open-url"; -// @ts-expect-error gauntlet uses deno and not node -// eslint-disable-next-line @typescript-eslint/no-unused-vars -const denoCore: DenoCore = Deno[Deno.internal].core; - export default function SearchDocumentation(): ReactElement { const [searchText, setSearchText] = useState(""); @@ -27,7 +23,7 @@ export default function SearchDocumentation(): ReactElement { Object.entries(documentation).map(([_section, items]) => items .filter((item: { title: string; url: string }) => - item.title.toLowerCase().includes(searchText.toLowerCase()), + item.title.toLowerCase().includes(searchText.toLowerCase()) ) .map((item: { title: string; url: string }) => ( onClick(item.url)} /> - )), + )) ) : Object.entries(documentation).map(([section, items]) => (