Add ESLint Rule to firehydrant Plugin
Signed-off-by: AmbrishRamachandiran <ambrish.r@infosys.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-firehydrant': patch
|
||||
---
|
||||
|
||||
Added ESLint rule `no-top-level-material-ui-4-imports` in the `firehydrant` 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',
|
||||
},
|
||||
});
|
||||
|
||||
@@ -16,12 +16,10 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { DateTime } from 'luxon';
|
||||
import { ServiceAnalytics } from '../ServiceAnalytics/ServiceAnalytics';
|
||||
import {
|
||||
Box,
|
||||
Button as MaterialButton,
|
||||
Typography,
|
||||
makeStyles,
|
||||
} from '@material-ui/core';
|
||||
import Box from '@material-ui/core/Box';
|
||||
import MaterialButton from '@material-ui/core/MaterialButton';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import ExitToAppIcon from '@material-ui/icons/ExitToApp';
|
||||
import NotesIcon from '@material-ui/icons/Notes';
|
||||
import WhatshotIcon from '@material-ui/icons/Whatshot';
|
||||
|
||||
Reference in New Issue
Block a user