Skip to content

Commit 34f9da5

Browse files
authored
fix(ai-integrations): resolve lint errors (#2305)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
1 parent e9964fb commit 34f9da5

35 files changed

Lines changed: 46 additions & 60 deletions
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-ai-experience': patch
3+
---
4+
5+
Fixed lint errors by removing deprecated React imports and adding missing peer dependencies

workspaces/ai-integrations/packages/app/src/App.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import React from 'react';
1716
import { render, waitFor } from '@testing-library/react';
1817
import App from './App';
1918

workspaces/ai-integrations/packages/app/src/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import React from 'react';
1716
import { Navigate, Route } from 'react-router-dom';
1817
import { apiDocsPlugin, ApiExplorerPage } from '@backstage/plugin-api-docs';
1918
import {

workspaces/ai-integrations/packages/app/src/components/Root/LogoFull.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import React from 'react';
1716
import { makeStyles } from '@material-ui/core';
1817

1918
const useStyles = makeStyles({

workspaces/ai-integrations/packages/app/src/components/Root/LogoIcon.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import React from 'react';
1716
import { makeStyles } from '@material-ui/core';
1817

1918
const useStyles = makeStyles({

workspaces/ai-integrations/packages/app/src/components/Root/Root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import React, { PropsWithChildren } from 'react';
16+
import { PropsWithChildren } from 'react';
1717
import { makeStyles } from '@material-ui/core';
1818
import HomeIcon from '@material-ui/icons/Home';
1919
import ExtensionIcon from '@material-ui/icons/Extension';

workspaces/ai-integrations/packages/app/src/components/catalog/EntityPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import React from 'react';
1716
import { Button, Grid } from '@material-ui/core';
1817
import {
1918
EntityApiDefinitionCard,

workspaces/ai-integrations/packages/app/src/components/search/SearchPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import React from 'react';
1716
import { makeStyles, Theme, Grid, Paper } from '@material-ui/core';
1817

1918
import { CatalogSearchResultListItem } from '@backstage/plugin-catalog';

workspaces/ai-integrations/packages/app/src/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* limitations under the License.
1515
*/
1616
import '@backstage/cli/asset-types';
17-
import React from 'react';
1817
import ReactDOM from 'react-dom/client';
1918
import App from './App';
2019
import '@backstage/ui/css/styles.css';

workspaces/ai-integrations/plugins/ai-experience/dev/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import React from 'react';
1716
import NewspaperOutlinedIcon from '@mui/icons-material/NewspaperOutlined';
1817
import { createDevApp } from '@backstage/dev-utils';
1918
import { getAllThemes } from '@red-hat-developer-hub/backstage-plugin-theme';

0 commit comments

Comments
 (0)