chore: added material ui 4 import rule

Signed-off-by: Gaurav Pandey <grvpandey11@gmail.com>
This commit is contained in:
Gaurav Pandey
2024-03-21 11:23:23 +05:30
parent 5dc11788eb
commit f38f7d825a
3 changed files with 11 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-newrelic': patch
---
Added an optional ESLint rule - no-top-level-material-ui-4-imports -in cloudbuild plugin which has an auto fix function to migrate the imports and used it to migrate the Material UI imports for plugins/newrelic.
+5 -1
View File
@@ -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,7 @@
*/
import React from 'react';
import { Grid } from '@material-ui/core';
import Grid from '@material-ui/core/Grid';
import NewRelicFetchComponent from '../NewRelicFetchComponent';
import {
Header,