Skip to content

[8.x] [ResponseOps]consistent-type-imports linting rule for RO packages/plugins - PR3 (#212498)#216311

Merged
georgianaonoleata1904 merged 5 commits intoelastic:8.xfrom
georgianaonoleata1904:backport/8.x/pr-212498
Mar 31, 2025
Merged

[8.x] [ResponseOps]consistent-type-imports linting rule for RO packages/plugins - PR3 (#212498)#216311
georgianaonoleata1904 merged 5 commits intoelastic:8.xfrom
georgianaonoleata1904:backport/8.x/pr-212498

Conversation

@georgianaonoleata1904
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

…gins - PR3 (elastic#212498)

- Enabled @typescript-eslint/consistent-type-imports eslint rule for
ResponseOps packages and plugins:
- this rule ensures that imports used only for type declarations are
consistently written using import type syntax

- fixed type imports in:
    - x-pack/platform/plugins/shared/event_log
    - x-pack/platform/plugins/shared/rule_registry
    - x-pack/platform/plugins/shared/task_manager
    - x-pack/solutions/observability/packages/kbn-alerts-grouping
    - src/platform/packages/shared/kbn-alerts-ui-shared
    - src/platform/packages/shared/kbn-alerting-types
    - src/platform/packages/shared/kbn-cases-components
    - src/platform/packages/shared/kbn-actions-types
    - src/platform/packages/shared/kbn-alerts-as-data-utils
    - src/platform/packages/shared/kbn-grouping
    - src/platform/packages/shared/kbn-rrule
    - src/platform/packages/shared/kbn-rule-data-utils
    - src/platform/packages/shared/kbn-triggers-actions-ui-types
    - x-pack/platform/packages/shared/kbn-alerting-comparators

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 5a6c01f)

# Conflicts:
#	x-pack/platform/plugins/shared/event_log/server/es/cluster_client_adapter.ts
#	x-pack/platform/plugins/shared/event_log/server/event_log_client.ts
#	x-pack/platform/plugins/shared/event_log/server/types.ts
#	x-pack/platform/plugins/shared/rule_registry/common/types.ts
#	x-pack/platform/plugins/shared/rule_registry/server/alert_data_client/alerts_client.ts
#	x-pack/platform/plugins/shared/rule_registry/server/routes/find.ts
#	x-pack/platform/plugins/shared/rule_registry/server/routes/get_alerts_group_aggregations.ts
#	x-pack/platform/plugins/shared/rule_registry/server/rule_data_client/rule_data_client.ts
#	x-pack/platform/plugins/shared/rule_registry/server/rule_data_client/types.ts
#	x-pack/platform/plugins/shared/rule_registry/server/rule_data_plugin_service/index_options.ts
#	x-pack/platform/plugins/shared/rule_registry/server/search_strategy/search_strategy.ts
#	x-pack/platform/plugins/shared/rule_registry/server/utils/create_persistence_rule_type_wrapper.ts
#	x-pack/platform/plugins/shared/task_manager/server/lib/get_es_and_so_availability.test.ts
#	x-pack/platform/plugins/shared/task_manager/server/lib/get_es_and_so_availability.ts
#	x-pack/platform/plugins/shared/task_manager/server/metrics/task_metrics_collector.ts
#	x-pack/platform/plugins/shared/task_manager/server/monitoring/index.ts
#	x-pack/platform/plugins/shared/task_manager/server/monitoring/monitoring_stats_stream.ts
#	x-pack/platform/plugins/shared/task_manager/server/plugin.test.ts
#	x-pack/platform/plugins/shared/task_manager/server/plugin.ts
#	x-pack/platform/plugins/shared/task_manager/server/polling_lifecycle.ts
#	x-pack/platform/plugins/shared/task_manager/server/queries/mark_available_tasks_as_claimed.ts
#	x-pack/platform/plugins/shared/task_manager/server/removed_tasks/mark_removed_tasks_as_unrecognized.test.ts
#	x-pack/platform/plugins/shared/task_manager/server/removed_tasks/mark_removed_tasks_as_unrecognized.ts
#	x-pack/platform/plugins/shared/task_manager/server/routes/background_task_utilization.test.ts
#	x-pack/platform/plugins/shared/task_manager/server/saved_objects/model_versions/task_model_versions.ts
#	x-pack/platform/plugins/shared/task_manager/server/task_events.ts
#	x-pack/platform/plugins/shared/task_manager/server/task_scheduling.ts
#	x-pack/platform/plugins/shared/task_manager/server/task_store.test.ts
@georgianaonoleata1904 georgianaonoleata1904 merged commit 3e9c688 into elastic:8.x Mar 31, 2025
8 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants