From 6154e2149acd263bb0329b433ad307c8062e02bc Mon Sep 17 00:00:00 2001 From: Andrew Macri Date: Fri, 2 Jun 2023 08:42:56 -0600 Subject: [PATCH] [Security Solution] Security Assistant: fixes project lint errors (#18) ## Summary - fixes project checks via `node ./scripts/lint_ts_projects.js --fix` --- .../impl/connectorland/connector_selector/index.tsx | 3 ++- .../impl/connectorland/connector_setup/helpers.tsx | 2 +- x-pack/packages/kbn-elastic-assistant/tsconfig.json | 4 +--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector/index.tsx b/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector/index.tsx index dc82f3def7a75..3d6e4a3db29dc 100644 --- a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector/index.tsx +++ b/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector/index.tsx @@ -12,7 +12,7 @@ import { ActionConnector, ActionTypeRegistryContract, } from '@kbn/triggers-actions-ui-plugin/public'; -import { Conversation } from '@kbn/elastic-assistant'; + import { HttpSetup } from '@kbn/core-http-browser'; import { ActionConnectorProps } from '@kbn/triggers-actions-ui-plugin/public/types'; import { ConnectorAddModal } from '@kbn/triggers-actions-ui-plugin/public/common/constants'; @@ -21,6 +21,7 @@ import { OpenAiProviderType, } from '@kbn/stack-connectors-plugin/public/common'; import { css } from '@emotion/react'; +import { Conversation } from '../../assistant_context/types'; import { useLoadConnectors } from '../use_load_connectors'; import { useConversation } from '../../assistant/use_conversation'; import * as i18n from '../translations'; diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_setup/helpers.tsx b/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_setup/helpers.tsx index 146f1a4256685..cb11ca51047f0 100644 --- a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_setup/helpers.tsx +++ b/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_setup/helpers.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { Conversation } from '@kbn/elastic-assistant'; +import { Conversation } from '../../assistant_context/types'; /** * Removes all presentation data from the conversation diff --git a/x-pack/packages/kbn-elastic-assistant/tsconfig.json b/x-pack/packages/kbn-elastic-assistant/tsconfig.json index d23b8d6008e31..f460832b040d7 100644 --- a/x-pack/packages/kbn-elastic-assistant/tsconfig.json +++ b/x-pack/packages/kbn-elastic-assistant/tsconfig.json @@ -17,9 +17,7 @@ ], "kbn_references": [ "@kbn/core-http-browser", - "@kbn/kibana-utils-plugin", "@kbn/i18n", - "@kbn/timelines-plugin", "@kbn/stack-connectors-plugin", "@kbn/triggers-actions-ui-plugin", "@kbn/core-http-browser-mocks", @@ -28,6 +26,6 @@ "@kbn/actions-plugin", "@kbn/core-notifications-browser", "@kbn/i18n-react", - "@kbn/ui-theme" + "@kbn/ui-theme", ] }