Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ResponseOps]consistent-type-imports linting rule for RO packages/plugins - PR3 #212498

Open
wants to merge 45 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
8eadf3a
added eslint rule for consistent-type-imports and fixed imports for e…
georgianaonoleata1904 Feb 26, 2025
314c5ab
fixed type imports for rule_registry
georgianaonoleata1904 Feb 26, 2025
84708f6
fixed type imports for task_manager
georgianaonoleata1904 Feb 26, 2025
b443b7c
fixed type imports for kbn-alerts-shared and kbn-alerts-grouping
georgianaonoleata1904 Feb 26, 2025
dae62eb
fixed type imports for kbn-alerting-types
georgianaonoleata1904 Feb 26, 2025
5f6a10e
fixed type imports for kbn-cases-components and kbn-alerts-as-data-utils
georgianaonoleata1904 Feb 26, 2025
7dda587
fixed type imports for kbn-grouping, kbn-rrule, kbn-rule-data-utils, …
georgianaonoleata1904 Feb 26, 2025
9522394
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine Feb 26, 2025
a82fcdd
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Mar 3, 2025
113cb23
Merge branch 'main' into type-imports-eslint-ro-3
georgianaonoleata1904 Mar 3, 2025
ede6ecf
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine Mar 3, 2025
da41282
Merge branch 'main' into type-imports-eslint-ro-3
georgianaonoleata1904 Mar 3, 2025
f8f0c77
added missing import type
georgianaonoleata1904 Mar 3, 2025
8ab563e
Merge branch 'type-imports-eslint-ro-3' of https://github.com/georgia…
georgianaonoleata1904 Mar 3, 2025
8b5c75e
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine Mar 3, 2025
5604c2f
Merge branch 'main' into type-imports-eslint-ro-3
georgianaonoleata1904 Mar 4, 2025
8784319
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Mar 4, 2025
7c5270c
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine Mar 4, 2025
ed8d200
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Mar 4, 2025
df9ca35
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine Mar 4, 2025
ffdba0d
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Mar 4, 2025
f8aed6b
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine Mar 4, 2025
0de734a
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Mar 4, 2025
ac7847e
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine Mar 4, 2025
fc462c2
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Mar 4, 2025
c6e5ce3
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine Mar 4, 2025
f61723c
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Mar 4, 2025
1ff9d6c
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine Mar 4, 2025
49ce1df
Merge branch 'main' into type-imports-eslint-ro-3
georgianaonoleata1904 Mar 4, 2025
bbc6e3e
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Mar 4, 2025
7ad013e
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine Mar 4, 2025
9e73ac8
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Mar 5, 2025
e99eeff
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine Mar 5, 2025
24fec8f
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Mar 5, 2025
0418dcf
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine Mar 5, 2025
66e0eb5
Merge branch 'main' into type-imports-eslint-ro-3
georgianaonoleata1904 Mar 5, 2025
24b78ec
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Mar 5, 2025
ab38297
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine Mar 5, 2025
486d163
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Mar 5, 2025
6024877
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine Mar 5, 2025
8249fde
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Mar 5, 2025
70156e2
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine Mar 5, 2025
6c934fd
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Mar 5, 2025
a85aeb0
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine Mar 5, 2025
7e48068
Merge branch 'main' into type-imports-eslint-ro-3
georgianaonoleata1904 Mar 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1627,6 +1627,30 @@ module.exports = {
'@typescript-eslint/no-explicit-any': 'error',
},
},
/**
* ResponseOps overrides
*/
{
files: [
'x-pack/platform/plugins/shared/event_log/**/*.{ts, tsx}',
'x-pack/platform/plugins/shared/rule_registry/**/*.{ts, tsx}',
'x-pack/platform/plugins/shared/task_manager/**/*.{ts, tsx}',
'x-pack/solutions/observability/packages/kbn-alerts-grouping/**/*.{ts, tsx}',
'src/platform/packages/shared/kbn-alerts-ui-shared/**/*.{ts, tsx}',
'src/platform/packages/shared/kbn-alerting-types/**/*.{ts, tsx}',
'src/platform/packages/shared/kbn-cases-components/**/*.{ts, tsx}',
'src/platform/packages/shared/kbn-actions-types/**/*.{ts, tsx}',
'src/platform/packages/shared/kbn-alerts-as-data-utils/**/*.{ts, tsx}',
'src/platform/packages/shared/kbn-grouping/**/*.{ts, tsx}',
'src/platform/packages/shared/kbn-rrule/**/*.{ts, tsx}',
'src/platform/packages/shared/kbn-rule-data-utils/**/*.{ts, tsx}',
'src/platform/packages/shared/kbn-triggers-actions-ui-types/**/*.{ts, tsx}',
'x-pack/platform/packages/shared/kbn-alerting-comparators/**/*.{ts, tsx}',
],
rules: {
'@typescript-eslint/consistent-type-imports': 'error',
},
},

/**
* Lens overrides
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/

import { SerializedFieldFormat } from '@kbn/field-formats-plugin/common';
import type { SerializedFieldFormat } from '@kbn/field-formats-plugin/common';
import type { IFieldSubType } from '@kbn/es-query';
import type { RuntimeField } from '@kbn/data-views-plugin/common';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/

import { TechnicalRuleDataFieldName } from '@kbn/rule-data-utils';
import { JsonValue } from '@kbn/utility-types';
import type { TechnicalRuleDataFieldName } from '@kbn/rule-data-utils';
import type { JsonValue } from '@kbn/utility-types';

export interface MetaAlertFields {
_id: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { i18n } from '@kbn/i18n';
import { ActionGroup } from './action_group_types';
import type { ActionGroup } from './action_group_types';

export const RecoveredActionGroup: Readonly<ActionGroup<'recovered'>> = Object.freeze({
id: 'recovered',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

import type { LicenseType } from '@kbn/licensing-plugin/common/types';
import type { RecoveredActionGroupId, DefaultActionGroupId } from './builtin_action_groups_types';
import { ActionGroup } from './action_group_types';
import { ActionVariable } from './action_variable';
import type { ActionGroup } from './action_group_types';
import type { ActionVariable } from './action_variable';

interface ConsumerPrivileges {
read: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import {
TAGS,
ALERT_INTENDED_TIMESTAMP,
} from '@kbn/rule-data-utils';
import { MultiField } from './types';
import type { MultiField } from './types';

export const alertFieldMap = {
[ALERT_ACTION_GROUP]: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { EcsFlat } from '@elastic/ecs';
import { EcsMetadata, FieldMap } from './types';
import type { EcsMetadata, FieldMap } from './types';

const EXCLUDED_TYPES = ['constant_keyword'];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import fs from 'fs';
import path from 'path';
import { set } from '@kbn/safer-lodash-set';
import { get } from 'lodash';
import { FieldMap } from '../..';
import { createLineWriter, LineWriter } from './lib/line_writer';
import type { FieldMap } from '../..';
import type { LineWriter } from './lib/line_writer';
import { createLineWriter } from './lib/line_writer';

const PLUGIN_DIR = path.resolve(path.join(__dirname, '..'));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// this file was generated, and should not be edited by hand
// ---------------------------------- WARNING ----------------------------------
import * as rt from 'io-ts';
import { Either } from 'fp-ts/lib/Either';
import type { Either } from 'fp-ts/lib/Either';

const ISO_DATE_PATTERN = /^d{4}-d{2}-d{2}Td{2}:d{2}:d{2}.d{3}Z$/;
export const IsoDateString = new rt.Type<string, string, unknown>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// this file was generated, and should not be edited by hand
// ---------------------------------- WARNING ----------------------------------
import * as rt from 'io-ts';
import { Either } from 'fp-ts/lib/Either';
import type { Either } from 'fp-ts/lib/Either';
import { AlertSchema } from './alert_schema';
const ISO_DATE_PATTERN = /^d{4}-d{2}-d{2}Td{2}:d{2}:d{2}.d{3}Z$/;
export const IsoDateString = new rt.Type<string, string, unknown>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// this file was generated, and should not be edited by hand
// ---------------------------------- WARNING ----------------------------------
import * as rt from 'io-ts';
import { Either } from 'fp-ts/lib/Either';
import type { Either } from 'fp-ts/lib/Either';

const ISO_DATE_PATTERN = /^d{4}-d{2}-d{2}Td{2}:d{2}:d{2}.d{3}Z$/;
export const IsoDateString = new rt.Type<string, string, unknown>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// this file was generated, and should not be edited by hand
// ---------------------------------- WARNING ----------------------------------
import * as rt from 'io-ts';
import { Either } from 'fp-ts/lib/Either';
import type { Either } from 'fp-ts/lib/Either';

const ISO_DATE_PATTERN = /^d{4}-d{2}-d{2}Td{2}:d{2}:d{2}.d{3}Z$/;
export const IsoDateString = new rt.Type<string, string, unknown>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// this file was generated, and should not be edited by hand
// ---------------------------------- WARNING ----------------------------------
import * as rt from 'io-ts';
import { Either } from 'fp-ts/lib/Either';
import type { Either } from 'fp-ts/lib/Either';
import { AlertSchema } from './alert_schema';
const ISO_DATE_PATTERN = /^d{4}-d{2}-d{2}Td{2}:d{2}:d{2}.d{3}Z$/;
export const IsoDateString = new rt.Type<string, string, unknown>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// this file was generated, and should not be edited by hand
// ---------------------------------- WARNING ----------------------------------
import * as rt from 'io-ts';
import { Either } from 'fp-ts/lib/Either';
import type { Either } from 'fp-ts/lib/Either';
import { AlertSchema } from './alert_schema';
const ISO_DATE_PATTERN = /^d{4}-d{2}-d{2}Td{2}:d{2}:d{2}.d{3}Z$/;
export const IsoDateString = new rt.Type<string, string, unknown>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// this file was generated, and should not be edited by hand
// ---------------------------------- WARNING ----------------------------------
import * as rt from 'io-ts';
import { Either } from 'fp-ts/lib/Either';
import type { Either } from 'fp-ts/lib/Either';
import { AlertSchema } from './alert_schema';
import { LegacyAlertSchema } from './legacy_alert_schema';
const ISO_DATE_PATTERN = /^d{4}-d{2}-d{2}Td{2}:d{2}:d{2}.d{3}Z$/;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// this file was generated, and should not be edited by hand
// ---------------------------------- WARNING ----------------------------------
import * as rt from 'io-ts';
import { Either } from 'fp-ts/lib/Either';
import type { Either } from 'fp-ts/lib/Either';
import { AlertSchema } from './alert_schema';
import { EcsSchema } from './ecs_schema';
import { LegacyAlertSchema } from './legacy_alert_schema';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// this file was generated, and should not be edited by hand
// ---------------------------------- WARNING ----------------------------------
import * as rt from 'io-ts';
import { Either } from 'fp-ts/lib/Either';
import type { Either } from 'fp-ts/lib/Either';
import { AlertSchema } from './alert_schema';
import { EcsSchema } from './ecs_schema';
import { LegacyAlertSchema } from './legacy_alert_schema';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// this file was generated, and should not be edited by hand
// ---------------------------------- WARNING ----------------------------------
import * as rt from 'io-ts';
import { Either } from 'fp-ts/lib/Either';
import type { Either } from 'fp-ts/lib/Either';
import { AlertSchema } from './alert_schema';
import { EcsSchema } from './ecs_schema';
import { LegacyAlertSchema } from './legacy_alert_schema';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// this file was generated, and should not be edited by hand
// ---------------------------------- WARNING ----------------------------------
import * as rt from 'io-ts';
import { Either } from 'fp-ts/lib/Either';
import type { Either } from 'fp-ts/lib/Either';
import { AlertSchema } from './alert_schema';
import { EcsSchema } from './ecs_schema';
const ISO_DATE_PATTERN = /^d{4}-d{2}-d{2}Td{2}:d{2}:d{2}.d{3}Z$/;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// this file was generated, and should not be edited by hand
// ---------------------------------- WARNING ----------------------------------
import * as rt from 'io-ts';
import { Either } from 'fp-ts/lib/Either';
import type { Either } from 'fp-ts/lib/Either';
import { AlertSchema } from './alert_schema';
import { LegacyAlertSchema } from './legacy_alert_schema';
const ISO_DATE_PATTERN = /^d{4}-d{2}-d{2}Td{2}:d{2}:d{2}.d{3}Z$/;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// this file was generated, and should not be edited by hand
// ---------------------------------- WARNING ----------------------------------
import * as rt from 'io-ts';
import { Either } from 'fp-ts/lib/Either';
import type { Either } from 'fp-ts/lib/Either';
import { AlertSchema } from './alert_schema';
import { EcsSchema } from './ecs_schema';
import { LegacyAlertSchema } from './legacy_alert_schema';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// this file was generated, and should not be edited by hand
// ---------------------------------- WARNING ----------------------------------
import * as rt from 'io-ts';
import { Either } from 'fp-ts/lib/Either';
import type { Either } from 'fp-ts/lib/Either';
import { AlertSchema } from './alert_schema';
import { EcsSchema } from './ecs_schema';
const ISO_DATE_PATTERN = /^d{4}-d{2}-d{2}Td{2}:d{2}:d{2}.d{3}Z$/;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// this file was generated, and should not be edited by hand
// ---------------------------------- WARNING ----------------------------------
import * as rt from 'io-ts';
import { Either } from 'fp-ts/lib/Either';
import type { Either } from 'fp-ts/lib/Either';
import { AlertSchema } from './alert_schema';
const ISO_DATE_PATTERN = /^d{4}-d{2}-d{2}Td{2}:d{2}:d{2}.d{3}Z$/;
export const IsoDateString = new rt.Type<string, string, unknown>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/

import {
import type {
ActionContextVariablesFlatten,
ActionVariable,
SummaryActionContextVariablesFlatten,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
*/

import { partition } from 'lodash';
import { ActionVariable } from '@kbn/alerting-types';
import { ActionGroupWithMessageVariables, ActionVariables } from '@kbn/triggers-actions-ui-types';
import type { ActionVariable } from '@kbn/alerting-types';
import type {
ActionGroupWithMessageVariables,
ActionVariables,
} from '@kbn/triggers-actions-ui-types';
import { transformActionVariables } from './transforms';

export const getAvailableActionVariables = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/

import { ActionVariables, RuleType } from '@kbn/triggers-actions-ui-types';
import type { ActionVariables, RuleType } from '@kbn/triggers-actions-ui-types';
import { transformActionVariables } from './transforms';
import { ALERTING_FEATURE_ID } from '../common/constants';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/

import { ActionVariable } from '@kbn/alerting-types';
import type { ActionVariable } from '@kbn/alerting-types';
import type { ActionVariables, OmitMessageVariablesType } from '@kbn/triggers-actions-ui-types';
import {
ActionVariables,
OmitMessageVariablesType,
REQUIRED_ACTION_VARIABLES,
CONTEXT_ACTION_VARIABLES,
} from '@kbn/triggers-actions-ui-types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
*/

import { ALERT_RULE_NAME, ALERT_STATUS } from '@kbn/rule-data-utils';
import { OptionsListControlState } from '@kbn/controls-plugin/public';
import type { OptionsListControlState } from '@kbn/controls-plugin/public';
import { i18n } from '@kbn/i18n';
import { FilterControlConfig } from './types';
import type { FilterControlConfig } from './types';

export const DEFAULT_CONTROLS: FilterControlConfig[] = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/

import { ControlGroupRuntimeState } from '@kbn/controls-plugin/public';
import type { ControlGroupRuntimeState } from '@kbn/controls-plugin/public';
import type { Storage } from '@kbn/kibana-utils-plugin/public';
import { useEffect, useRef, useState } from 'react';
import type { Dispatch, SetStateAction } from 'react';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/

import { ViewMode } from '@kbn/presentation-publishing';
import type { ViewMode } from '@kbn/presentation-publishing';
import { useCallback, useEffect, useState } from 'react';

interface UseViewEditModeArgs {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import type { ControlGroupRuntimeState } from '@kbn/controls-plugin/public';
import { Filter } from '@kbn/es-query';
import type { Filter } from '@kbn/es-query';
import { BehaviorSubject } from 'rxjs';

export const controlGroupFilterOutputMock$ = new BehaviorSubject<Filter[] | undefined>([]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/

import { ControlGroupRuntimeState, OptionsListControlState } from '@kbn/controls-plugin/public';
import { Filter } from '@kbn/es-query';
import type {
ControlGroupRuntimeState,
OptionsListControlState,
} from '@kbn/controls-plugin/public';
import type { Filter } from '@kbn/es-query';
import { ALERT_DURATION, ALERT_RULE_NAME, ALERT_START, ALERT_STATUS } from '@kbn/rule-data-utils';

export interface ControlGroupOutput {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import type { Filter } from '@kbn/es-query';
import type { ToastsStart, HttpStart } from '@kbn/core/public';
import type { UnifiedSearchPublicPluginStart } from '@kbn/unified-search-plugin/public';
import { DataPublicPluginStart } from '@kbn/data-plugin/public';
import type { DataPublicPluginStart } from '@kbn/data-plugin/public';

export type QueryLanguageType = 'lucene' | 'kuery';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/

import { ActionType } from '@kbn/actions-types';
import { PreConfiguredActionConnector } from '../common/types';
import type { ActionType } from '@kbn/actions-types';
import type { PreConfiguredActionConnector } from '../common/types';
import {
checkActionFormActionTypeEnabled,
checkActionTypeEnabled,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/

import { ActionType } from '@kbn/actions-types';
import { ActionConnector } from '../common/types';
import type { ActionType } from '@kbn/actions-types';
import type { ActionConnector } from '../common/types';
import './check_action_type_enabled.scss';
import { configurationCheckResult, getLicenseCheckResult } from './get_license_check_result';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/

import { HttpSetup } from '@kbn/core/public';
import { AsApiContract } from '@kbn/actions-types';
import { AlertingFrameworkHealth, AlertsHealth } from '@kbn/alerting-types';
import type { HttpSetup } from '@kbn/core/public';
import type { AsApiContract } from '@kbn/actions-types';
import type { AlertingFrameworkHealth, AlertsHealth } from '@kbn/alerting-types';
import { BASE_ALERTING_API_PATH } from '../../constants';
import { transformAlertingFrameworkHealthResponse, transformAlertsHealthResponse } from '.';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/

import { AsApiContract, RewriteRequestCase } from '@kbn/actions-types';
import { AlertingFrameworkHealth, AlertsHealth } from '@kbn/alerting-types';
import type { AsApiContract, RewriteRequestCase } from '@kbn/actions-types';
import type { AlertingFrameworkHealth, AlertsHealth } from '@kbn/alerting-types';

export const transformAlertsHealthResponse: RewriteRequestCase<AlertsHealth> = ({
decryption_health: decryptionHealth,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/

import { HttpSetup } from '@kbn/core-http-browser';
import type { HttpSetup } from '@kbn/core-http-browser';

export interface FetchAlertsFieldsParams {
// Dependencies
Expand Down
Loading