From a39964e8998dcc0be6937f209619b00ee081ca28 Mon Sep 17 00:00:00 2001 From: Jan Potoms <2109932+Janpot@users.noreply.github.com> Date: Mon, 29 Aug 2022 09:21:29 +0200 Subject: [PATCH] Remove baseline overrides from eslintrc (#835) * Remove baseline overrides from eslintrc * Fix issues Signed-off-by: Jan Potoms <2109932+Janpot@users.noreply.github.com> --- .eslintrc.js | 1 - packages/toolpad-app/src/utils/react.tsx | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 973705456c5..260b678ef9a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -65,7 +65,6 @@ module.exports = { '@next/next/no-html-link-for-pages': ['error', 'packages/toolpad-app/pages/'], }, }, - ...baseline.overrides, { // Disabling this rule for now: // https://github.com/mui/material-ui/blob/9737bc85bb6960adb742e7709e9c3710c4b6cedd/.eslintrc.js#L359 diff --git a/packages/toolpad-app/src/utils/react.tsx b/packages/toolpad-app/src/utils/react.tsx index 0b6495623ce..d3bb2b3930b 100644 --- a/packages/toolpad-app/src/utils/react.tsx +++ b/packages/toolpad-app/src/utils/react.tsx @@ -13,11 +13,7 @@ export function createProvidedContext( return maybeContext; }; - const Provider = ({ value, ...props }: React.ProviderProps) => { - return ; - }; - - return [useContext, Provider]; + return [useContext, context.Provider as React.ComponentType>]; } export function suspendPromise(promise: Promise): () => T {