From 801946293e69964ee000f3202cb83fe02b4fff7e Mon Sep 17 00:00:00 2001 From: Tom Milewski Date: Mon, 30 Oct 2023 17:01:51 -0700 Subject: [PATCH] chore(repo): Temp disable @typescript-eslint/no-duplicate-type-constituents --- .eslintignore | 1 + packages/eslint-config-custom/typescript.js | 2 +- packages/remix/src/client/RemixOptionsContext.tsx | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.eslintignore b/.eslintignore index c9017c6e991..23054755e15 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,6 +1,7 @@ **/coverage/** **/node_modules/** packages/*/dist/** +packages/eslint-config-custom/** **/dist/* **/build/* playground diff --git a/packages/eslint-config-custom/typescript.js b/packages/eslint-config-custom/typescript.js index cd423229d52..b08d5afc3a6 100644 --- a/packages/eslint-config-custom/typescript.js +++ b/packages/eslint-config-custom/typescript.js @@ -26,7 +26,7 @@ const disabledRules = { // TODO: All rules below should be set to their defaults // when we're able to make the appropriate changes. '@typescript-eslint/await-thenable': 'warn', - '@typescript-eslint/no-duplicate-type-constituents': 'warn', + '@typescript-eslint/no-duplicate-type-constituents': 'off', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-misused-promises': 'warn', '@typescript-eslint/no-floating-promises': [ diff --git a/packages/remix/src/client/RemixOptionsContext.tsx b/packages/remix/src/client/RemixOptionsContext.tsx index 52e2aa6e1b8..15e6d70e810 100644 --- a/packages/remix/src/client/RemixOptionsContext.tsx +++ b/packages/remix/src/client/RemixOptionsContext.tsx @@ -9,7 +9,7 @@ ClerkRemixOptionsCtx.displayName = 'ClerkRemixOptionsCtx'; const useClerkRemixOptions = () => { const ctx = React.useContext(ClerkRemixOptionsCtx)!; - return ctx.value as ClerkRemixContextValue; + return ctx.value; }; const ClerkRemixOptionsProvider = (props: React.PropsWithChildren<{ options: ClerkRemixContextValue }>) => {