From 64bf19abc41626022ac4f730feafe39db1d1e8a4 Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Sun, 22 Jan 2023 16:34:03 +0800 Subject: [PATCH] ignore empty funtion for tw helper --- packages/ui/src/utils.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/ui/src/utils.tsx b/packages/ui/src/utils.tsx index 8b55cc990..27ffd0fd4 100644 --- a/packages/ui/src/utils.tsx +++ b/packages/ui/src/utils.tsx @@ -17,7 +17,8 @@ type TailwindFactory = { (c: T): ClassnameFactory; }; -export const tw = new Proxy({} as unknown as TailwindFactory, { +// eslint-ignore-next-line +export const tw = new Proxy((() => {}) as unknown as TailwindFactory, { get: (_, property: string) => twFactory(property), apply: (_, __, [el]: [React.ReactElement]) => twFactory(el) });