diff --git a/docs/src/modules/components/SchemaReference.tsx b/docs/src/modules/components/SchemaReference.tsx index 1098be6b7ab..bdd01fff647 100644 --- a/docs/src/modules/components/SchemaReference.tsx +++ b/docs/src/modules/components/SchemaReference.tsx @@ -234,9 +234,7 @@ function JsonSchemaItemDisplay({ schema, idPrefix }: JsonSchemaItemDisplayProps) return ( - {/* eslint-disable-next-line @typescript-eslint/no-use-before-define */} - {/* eslint-disable-next-line @typescript-eslint/no-use-before-define */} ); @@ -288,7 +286,6 @@ function JsonSchemaPropertiesDisplay({ schema, idPrefix, open }: JsonSchemaPrope {interleave( properties.map(([propName, propSchema]) => { return ( - // eslint-disable-next-line @typescript-eslint/no-use-before-define - {/* eslint-disable-next-line @typescript-eslint/no-use-before-define */} diff --git a/packages/toolpad-app/src/runtime/ToolpadApp.tsx b/packages/toolpad-app/src/runtime/ToolpadApp.tsx index a27318cd0fe..58f27438bb5 100644 --- a/packages/toolpad-app/src/runtime/ToolpadApp.tsx +++ b/packages/toolpad-app/src/runtime/ToolpadApp.tsx @@ -645,7 +645,6 @@ function RenderedNode({ nodeId }: RenderedNodeProps) { const childNodeGroups = appDom.getChildNodes(dom, node); return ( - /* eslint-disable-next-line @typescript-eslint/no-use-before-define */ ); } diff --git a/packages/toolpad-app/src/server/localMode.ts b/packages/toolpad-app/src/server/localMode.ts index a4bfb927a9a..5fd56fd34bc 100644 --- a/packages/toolpad-app/src/server/localMode.ts +++ b/packages/toolpad-app/src/server/localMode.ts @@ -362,18 +362,12 @@ function expandChildren( dom: appDom.AppDom, ): (Query | ElementType)[]; function expandChildren(children: N[], dom: appDom.AppDom) { - return ( - children - .sort((child1, child2) => { - invariant( - child1.parentIndex && child2.parentIndex, - 'Nodes are not children of another node', - ); - return appDom.compareFractionalIndex(child1.parentIndex, child2.parentIndex); - }) - // eslint-disable-next-line @typescript-eslint/no-use-before-define - .map((child) => expandFromDom(child, dom)) - ); + return children + .sort((child1, child2) => { + invariant(child1.parentIndex && child2.parentIndex, 'Nodes are not children of another node'); + return appDom.compareFractionalIndex(child1.parentIndex, child2.parentIndex); + }) + .map((child) => expandFromDom(child, dom)); } function undefinedWhenEmpty(obj?: O): O | undefined { diff --git a/test/integration/backend-basic/base.spec.ts b/test/integration/backend-basic/base.spec.ts index e8bec249c34..80e751f0e61 100644 --- a/test/integration/backend-basic/base.spec.ts +++ b/test/integration/backend-basic/base.spec.ts @@ -5,6 +5,7 @@ import { expectBasicPageContent } from './shared'; test.use({ ignoreConsoleErrors: [ + // eslint-disable-next-line material-ui/straight-quotes /The page’s settings blocked the loading of a resource at http:\/\/localhost:\d+\/favicon\.ico/, /Failed to load resource: the server responded with a status of 404/, ], diff --git a/test/integration/backend-basic/baseProd.spec.ts b/test/integration/backend-basic/baseProd.spec.ts index 3b5a70e24e6..98537fb6fbe 100644 --- a/test/integration/backend-basic/baseProd.spec.ts +++ b/test/integration/backend-basic/baseProd.spec.ts @@ -5,6 +5,7 @@ import { expectBasicPageContent } from './shared'; test.use({ ignoreConsoleErrors: [ + // eslint-disable-next-line material-ui/straight-quotes /The page’s settings blocked the loading of a resource at http:\/\/localhost:\d+\/favicon\.ico/, /Failed to load resource: the server responded with a status of 404/, ], diff --git a/yarn.lock b/yarn.lock index 03e364b3b69..1ce0bf951a6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1939,8 +1939,8 @@ react-transition-group "^4.4.5" "@mui/monorepo@https://github.com/mui/material-ui.git": - version "5.14.10" - resolved "https://github.com/mui/material-ui.git#f1401844507519e09814bf8ea3ac338ec8011044" + version "5.14.11" + resolved "https://github.com/mui/material-ui.git#92a5d8550c41998ed06df884e45b230bdb239c18" "@mui/private-theming@^5.14.12": version "5.14.12"