Merge pull request #23550 from cftad/plugin-catalog-uprocessed-entities-mui-imports
Add ESLint Rule to Catalog Unprocessed Entities Plugin
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-unprocessed-entities': patch
|
||||
---
|
||||
|
||||
Added the `no-top-level-material-ui-4-imports` ESLint rule to aid with the migration to Material UI v5
|
||||
@@ -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',
|
||||
},
|
||||
});
|
||||
|
||||
@@ -23,7 +23,9 @@ import {
|
||||
TableColumn,
|
||||
} from '@backstage/core-components';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import { Box, Theme, Typography, makeStyles } from '@material-ui/core';
|
||||
import Box from '@material-ui/core/Box';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import { Theme, makeStyles } from '@material-ui/core/styles';
|
||||
|
||||
import { UnprocessedEntity } from '../types';
|
||||
import { EntityDialog } from './EntityDialog';
|
||||
|
||||
@@ -21,7 +21,8 @@ import {
|
||||
TableColumn,
|
||||
Table,
|
||||
} from '@backstage/core-components';
|
||||
import { Theme, Typography, makeStyles } from '@material-ui/core';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import { Theme, makeStyles } from '@material-ui/core/styles';
|
||||
|
||||
import { UnprocessedEntity } from '../types';
|
||||
|
||||
|
||||
@@ -16,8 +16,11 @@
|
||||
import React, { useState } from 'react';
|
||||
|
||||
import { Page, Header, Content } from '@backstage/core-components';
|
||||
import { Tab, makeStyles } from '@material-ui/core';
|
||||
import { TabContext, TabList, TabPanel } from '@material-ui/lab';
|
||||
import Tab from '@material-ui/core/Tab';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import TabContext from '@material-ui/lab/TabContext';
|
||||
import TabList from '@material-ui/lab/TabList';
|
||||
import TabPanel from '@material-ui/lab/TabPanel';
|
||||
|
||||
import { FailedEntities } from './FailedEntities';
|
||||
import { PendingEntities } from './PendingEntities';
|
||||
|
||||
Reference in New Issue
Block a user