Skip to content

Commit

Permalink
Remove baseline overrides from eslintrc (#835)
Browse files Browse the repository at this point in the history
* Remove baseline overrides from eslintrc

* Fix issues

Signed-off-by: Jan Potoms <[email protected]>
  • Loading branch information
Janpot authored Aug 29, 2022
1 parent 1ceb86b commit a39964e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 1 addition & 5 deletions packages/toolpad-app/src/utils/react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ export function createProvidedContext<T>(
return maybeContext;
};

const Provider = ({ value, ...props }: React.ProviderProps<T>) => {
return <context.Provider value={value} {...props} />;
};

return [useContext, Provider];
return [useContext, context.Provider as React.ComponentType<React.ProviderProps<T>>];
}

export function suspendPromise<T>(promise: Promise<T>): () => T {
Expand Down

0 comments on commit a39964e

Please sign in to comment.