Merge pull request #23529 from AdityaK60/Update_plugin_dynatrace

Added Material UI 4 import rule to plugins/dynatrace
This commit is contained in:
Fredrik Adelöw
2024-03-14 12:59:55 +01:00
committed by GitHub
4 changed files with 12 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-dynatrace': patch
---
Adjusted MUI imports for better tree shaking
+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',
},
});
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import React from 'react';
import { Grid } from '@material-ui/core';
import Grid from '@material-ui/core/Grid';
import { Page, Content } from '@backstage/core-components';
import {
useEntity,
@@ -18,7 +18,7 @@ import React from 'react';
import useAsync from 'react-use/lib/useAsync';
import { Progress, ResponseErrorPanel } from '@backstage/core-components';
import { useApi } from '@backstage/core-plugin-api';
import { Chip } from '@material-ui/core';
import Chip from '@material-ui/core/Chip';
import { dynatraceApiRef } from '../../../api';
type SyntheticsLocationProps = {