Add ESLint Rule to github-issues Plugin
Signed-off-by: AmbrishRamachandiran <ambrish.r@infosys.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-github-issues': minor
|
||||
---
|
||||
|
||||
Added ESLint rule `no-top-level-material-ui-4-imports` in the `github-issues` 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',
|
||||
},
|
||||
});
|
||||
@@ -15,7 +15,9 @@
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Box, IconButton, Typography } from '@material-ui/core';
|
||||
import Box from '@material-ui/core/Box';
|
||||
import IconButton from '@material-ui/core/IconButton';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import { InfoCard, Progress } from '@backstage/core-components';
|
||||
import RefreshIcon from '@material-ui/icons/Refresh';
|
||||
import { useEntityGithubRepositories } from '../../hooks/useEntityGithubRepositories';
|
||||
|
||||
@@ -15,7 +15,10 @@
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Typography, Box, Avatar, makeStyles } from '@material-ui/core';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import Box from '@material-ui/core/Box';
|
||||
import Avatar from '@material-ui/core/Avatar';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
|
||||
type AssigneesProps = {
|
||||
name?: string;
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
|
||||
import React from 'react';
|
||||
import { ChatIcon } from '@backstage/core-components';
|
||||
import { Box, Badge } from '@material-ui/core';
|
||||
import Box from '@material-ui/core/Box';
|
||||
import Badge from '@material-ui/core/Badge';
|
||||
|
||||
type CommentsCountProps = {
|
||||
commentsCount: number;
|
||||
|
||||
@@ -15,7 +15,10 @@
|
||||
*/
|
||||
|
||||
import { Link } from '@backstage/core-components';
|
||||
import { Box, CardActionArea, Paper, Typography } from '@material-ui/core';
|
||||
import Box from '@material-ui/core/Box';
|
||||
import CardActionArea from '@material-ui/core/CardActionArea';
|
||||
import Paper from '@material-ui/core/Paper';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import Divider from '@material-ui/core/Divider';
|
||||
import { DateTime } from 'luxon';
|
||||
import React from 'react';
|
||||
|
||||
@@ -16,7 +16,9 @@
|
||||
|
||||
import React from 'react';
|
||||
import { Select, SelectedItems, SelectItem } from '@backstage/core-components';
|
||||
import { makeStyles, Box, Typography } from '@material-ui/core';
|
||||
import Box from '@material-ui/core/Box';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
|
||||
type RepositoryFiltersProps = {
|
||||
items: Array<SelectItem>;
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Box } from '@material-ui/core';
|
||||
import { Pagination } from '@material-ui/lab';
|
||||
import Box from '@material-ui/core/Box';
|
||||
import Pagination from '@material-ui/lab/Pagination';
|
||||
import { IssueCard } from '../IssueCard';
|
||||
import { IssuesByRepo } from '../../../api';
|
||||
import { RepositoryFilters } from './Filters';
|
||||
|
||||
Reference in New Issue
Block a user