From ee2bf431ff66716ec3a6ae9aeb2b1e0deda4df7d Mon Sep 17 00:00:00 2001 From: Binishma SS Date: Tue, 16 Apr 2024 14:24:43 +0530 Subject: [PATCH] Added ESLint to package-app-next Signed-off-by: Binishma SS --- packages/app-next/.eslintrc.js | 6 +++++- .../app-next/src/examples/notFoundErrorPageExtension.tsx | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/app-next/.eslintrc.js b/packages/app-next/.eslintrc.js index e2a53a6ad2..6f6668b53d 100644 --- a/packages/app-next/.eslintrc.js +++ b/packages/app-next/.eslintrc.js @@ -1 +1,5 @@ -module.exports = require('@backstage/cli/config/eslint-factory')(__dirname); +module.exports = require('@backstage/cli/config/eslint-factory')(__dirname, { + rules: { + '@backstage/no-top-level-material-ui-4-imports': 'error', + }, +}); diff --git a/packages/app-next/src/examples/notFoundErrorPageExtension.tsx b/packages/app-next/src/examples/notFoundErrorPageExtension.tsx index f83671bc23..f5108c6c15 100644 --- a/packages/app-next/src/examples/notFoundErrorPageExtension.tsx +++ b/packages/app-next/src/examples/notFoundErrorPageExtension.tsx @@ -19,7 +19,8 @@ import { createComponentExtension, coreComponentRefs, } from '@backstage/frontend-plugin-api'; -import { Box, Typography } from '@material-ui/core'; +import Box from '@material-ui/core/Box'; +import Typography from '@material-ui/core/Typography'; import { Button } from '@backstage/core-components'; export function CustomNotFoundErrorPage() {