Merge pull request #23700 from AdityaK60/Update_plugin_signals

Add ESLint Rule to Signals Plugin
This commit is contained in:
Ben Lambert
2024-03-19 09:55:20 +01:00
committed by GitHub
3 changed files with 11 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-signals': patch
---
Added ESLint rule `no-top-level-material-ui-4-imports` in the `signals` plugin to migrate the Material UI imports.
+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',
},
});
+1 -1
View File
@@ -17,7 +17,7 @@ import React from 'react';
import { createDevApp } from '@backstage/dev-utils';
import { signalsPlugin } from '../src/plugin';
import { Content, Header, Page } from '@backstage/core-components';
import { Typography } from '@material-ui/core';
import Typography from '@material-ui/core/Typography';
createDevApp()
.registerPlugin(signalsPlugin)