Merge pull request #23739 from AmbrishRamachandiran/update_github_deployments
Add ESLint Rule to Github-Deployments Plugin
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-github-deployments': patch
|
||||
---
|
||||
|
||||
Added ESLint rule `no-top-level-material-ui-4-imports` in the `github-deployments` plugin to migrate the Material UI imports.
|
||||
@@ -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',
|
||||
},
|
||||
});
|
||||
|
||||
@@ -41,7 +41,7 @@ import { graphql } from 'msw';
|
||||
import { ScmIntegrations } from '@backstage/integration';
|
||||
import { Entity } from '@backstage/catalog-model';
|
||||
import { GithubDeploymentsTable } from './GithubDeploymentsTable';
|
||||
import { Box } from '@material-ui/core';
|
||||
import Box from '@material-ui/core/Box';
|
||||
|
||||
import { ApiProvider, ConfigReader } from '@backstage/core-app-api';
|
||||
import {
|
||||
|
||||
+2
-1
@@ -15,7 +15,8 @@
|
||||
*/
|
||||
import React from 'react';
|
||||
import { GithubDeployment } from '../../api';
|
||||
import { Typography, makeStyles } from '@material-ui/core';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import SyncIcon from '@material-ui/icons/Sync';
|
||||
import { columnFactories } from './columns';
|
||||
import { defaultDeploymentColumns } from './presets';
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
import React from 'react';
|
||||
import { GithubDeployment } from '../../api';
|
||||
import { DateTime } from 'luxon';
|
||||
import { Box, Typography } from '@material-ui/core';
|
||||
import Box from '@material-ui/core/Box';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import {
|
||||
StatusPending,
|
||||
StatusRunning,
|
||||
|
||||
Reference in New Issue
Block a user