chore: added eslint rule for gocd plugin
Signed-off-by: Gaurav Pandey <grvpandey11@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-gocd': patch
|
||||
---
|
||||
|
||||
Added an optional ESLint rule - no-top-level-material-ui-4-imports -in gocd plugin which has an auto fix function to migrate the imports and used it to migrate the Material UI imports for plugins/gocd.
|
||||
@@ -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',
|
||||
},
|
||||
});
|
||||
@@ -21,14 +21,12 @@ import {
|
||||
toBuildResultStatus,
|
||||
GoCdBuildResultStatus,
|
||||
} from '../../api/gocdApi.model';
|
||||
import {
|
||||
Box,
|
||||
Grid,
|
||||
Card,
|
||||
CardContent,
|
||||
Tooltip,
|
||||
Typography,
|
||||
} from '@material-ui/core';
|
||||
import Box from '@material-ui/core/Box';
|
||||
import Grid from '@material-ui/core/Grid';
|
||||
import Card from '@material-ui/core/Card';
|
||||
import CardContent from '@material-ui/core/CardContent';
|
||||
import Tooltip from '@material-ui/core/Tooltip';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import { DateTime, Duration } from 'luxon';
|
||||
|
||||
export type GoCdBuildsInsightsProps = {
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
import React, { useState } from 'react';
|
||||
import { Entity, getEntitySourceLocation } from '@backstage/catalog-model';
|
||||
import { useEntity } from '@backstage/plugin-catalog-react';
|
||||
import { Alert } from '@material-ui/lab';
|
||||
import { Button } from '@material-ui/core';
|
||||
import Alert from '@material-ui/lab/Alert';
|
||||
import Button from '@material-ui/core/Button';
|
||||
import GitHubIcon from '@material-ui/icons/GitHub';
|
||||
import {
|
||||
GoCdBuildResult,
|
||||
|
||||
Reference in New Issue
Block a user