From bed12e929e564f3e907e443d17c83db7f36eb004 Mon Sep 17 00:00:00 2001 From: Pedro Cattori Date: Wed, 17 Aug 2022 15:36:09 -0400 Subject: [PATCH] chore(lint): ignore eslint warning about unused typescript generic that _is_ being used --- packages/remix-react/__tests__/hook-types-test.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/remix-react/__tests__/hook-types-test.tsx b/packages/remix-react/__tests__/hook-types-test.tsx index 122adaaad06..b6f0fe03a17 100644 --- a/packages/remix-react/__tests__/hook-types-test.tsx +++ b/packages/remix-react/__tests__/hook-types-test.tsx @@ -5,7 +5,9 @@ function isEqual( arg: A extends B ? (B extends A ? true : false) : false ): void {} -type LoaderData = ReturnType> +// not sure why `eslint` thinks the `T` generic is not used... +// eslint-disable-next-line @typescript-eslint/no-unused-vars +type LoaderData = ReturnType>; describe("useLoaderData", () => { it("supports plain data type", () => {