Skip to content

[ResponseOps]consistent-type-imports linting rule for RO packages/plugins - PR4#212508

Merged
georgianaonoleata1904 merged 13 commits intoelastic:mainfrom
georgianaonoleata1904:type-imports-eslint-ro-4
Mar 26, 2025
Merged

[ResponseOps]consistent-type-imports linting rule for RO packages/plugins - PR4#212508
georgianaonoleata1904 merged 13 commits intoelastic:mainfrom
georgianaonoleata1904:type-imports-eslint-ro-4

Conversation

@georgianaonoleata1904
Copy link
Contributor

@georgianaonoleata1904 georgianaonoleata1904 commented Feb 26, 2025

  • 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 for:

    • x-pack/test/alerting_api_integration
    • x-pack/test/cases_api_integration
    • x-pack/test/rule_registry
    • x-pack/test/api_integration/apis/cases

@georgianaonoleata1904 georgianaonoleata1904 changed the title WIP - [ResponseOps]consistent-type-imports linting rule for RO packages/plugins [ResponseOps]consistent-type-imports linting rule for RO packages/plugins - PR4 Mar 4, 2025
@georgianaonoleata1904 georgianaonoleata1904 self-assigned this Mar 4, 2025
@georgianaonoleata1904 georgianaonoleata1904 added release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// backport:version Backport to applied version labels v9.1.0 v8.19.0 labels Mar 4, 2025
@georgianaonoleata1904 georgianaonoleata1904 marked this pull request as ready for review March 4, 2025 09:34
@georgianaonoleata1904 georgianaonoleata1904 requested review from a team as code owners March 4, 2025 09:34
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

Copy link
Contributor

@gergoabraham gergoabraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elastic/security-defend-workflows related changes look good! thank you!

- x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/crowdstrike.ts
- x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/microsoft_defender_endpoint.ts
- x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/sentinelone.ts

Copy link
Contributor

@fkanout fkanout left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!
I was expecting in the build metrics to see a reduction in the bundle size 🤔

@georgianaonoleata1904 georgianaonoleata1904 enabled auto-merge (squash) March 26, 2025 11:47
@georgianaonoleata1904 georgianaonoleata1904 merged commit d60335a into elastic:main Mar 26, 2025
10 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/14084482033

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @georgianaonoleata1904

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.x Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 212508

Questions ?

Please refer to the Backport tool documentation

@georgianaonoleata1904
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

georgianaonoleata1904 added a commit to georgianaonoleata1904/kibana that referenced this pull request Mar 26, 2025
…gins - PR4 (elastic#212508)

- 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 for:
    - x-pack/test/alerting_api_integration
    - x-pack/test/cases_api_integration
    - x-pack/test/rule_registry
    - x-pack/test/api_integration/apis/cases

---------

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

# Conflicts:
#	x-pack/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/delete.ts
#	x-pack/test/alerting_api_integration/security_and_spaces/group1/tests/alerting/backfill/test_utils.ts
#	x-pack/test/alerting_api_integration/security_and_spaces/group4/tests/alerting/alerts.ts
#	x-pack/test/alerting_api_integration/security_and_spaces/group5/tests/alerting/index.ts
#	x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group1/alerts_base.ts
#	x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group4/alert_severity.ts
#	x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data.ts
#	x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data_alert_delay.ts
#	x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data_conflicts.ts
#	x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group4/alerts_as_data/alerts_as_data_flapping.ts
#	x-pack/test/cases_api_integration/common/lib/alerts.ts
#	x-pack/test/cases_api_integration/common/lib/api/user_actions.ts
#	x-pack/test/cases_api_integration/security_and_spaces/tests/common/cases/get_case.ts
#	x-pack/test/cases_api_integration/security_and_spaces/tests/common/cases/resolve_case.ts
#	x-pack/test/cases_api_integration/security_and_spaces/tests/common/index_common_trial/index.ts
#	x-pack/test/cases_api_integration/security_and_spaces/tests/common/user_actions/migrations.ts
#	x-pack/test/spaces_api_integration/security_and_spaces/copy_to_space_config_basic.ts
delanni added a commit that referenced this pull request Mar 26, 2025
umbopepato pushed a commit to umbopepato/kibana that referenced this pull request Mar 26, 2025
georgianaonoleata1904 added a commit that referenced this pull request Mar 26, 2025
…es/plugins - PR4 (#212508) (#216046)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ResponseOps]consistent-type-imports linting rule for RO
packages/plugins - PR4
(#212508)](#212508)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Georgiana-Andreea
Onoleață","email":"georgiana.onoleata@elastic.co"},"sourceCommit":{"committedDate":"2025-03-26T13:27:06Z","message":"[ResponseOps]consistent-type-imports
linting rule for RO packages/plugins - PR4 (#212508)\n\n- Enabled
@typescript-eslint/consistent-type-imports eslint rule for\nResponseOps
packages and plugins:\n- this rule ensures that imports used only for
type declarations are\nconsistently written using import type
syntax\n\n- fixed type imports for:\n -
x-pack/test/alerting_api_integration\n -
x-pack/test/cases_api_integration\n - x-pack/test/rule_registry\n -
x-pack/test/api_integration/apis/cases\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"d60335a19581c300a5e4123734ab8ba236711abe","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","backport:version","v9.1.0","v8.19.0"],"title":"[ResponseOps]consistent-type-imports
linting rule for RO packages/plugins -
PR4","number":212508,"url":"https://github.com/elastic/kibana/pull/212508","mergeCommit":{"message":"[ResponseOps]consistent-type-imports
linting rule for RO packages/plugins - PR4 (#212508)\n\n- Enabled
@typescript-eslint/consistent-type-imports eslint rule for\nResponseOps
packages and plugins:\n- this rule ensures that imports used only for
type declarations are\nconsistently written using import type
syntax\n\n- fixed type imports for:\n -
x-pack/test/alerting_api_integration\n -
x-pack/test/cases_api_integration\n - x-pack/test/rule_registry\n -
x-pack/test/api_integration/apis/cases\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"d60335a19581c300a5e4123734ab8ba236711abe"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212508","number":212508,"mergeCommit":{"message":"[ResponseOps]consistent-type-imports
linting rule for RO packages/plugins - PR4 (#212508)\n\n- Enabled
@typescript-eslint/consistent-type-imports eslint rule for\nResponseOps
packages and plugins:\n- this rule ensures that imports used only for
type declarations are\nconsistently written using import type
syntax\n\n- fixed type imports for:\n -
x-pack/test/alerting_api_integration\n -
x-pack/test/cases_api_integration\n - x-pack/test/rule_registry\n -
x-pack/test/api_integration/apis/cases\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"d60335a19581c300a5e4123734ab8ba236711abe"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
cqliu1 pushed a commit to cqliu1/kibana that referenced this pull request Mar 31, 2025
…gins - PR4 (elastic#212508)

- 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 for:
    - x-pack/test/alerting_api_integration
    - x-pack/test/cases_api_integration
    - x-pack/test/rule_registry
    - x-pack/test/api_integration/apis/cases

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
cqliu1 pushed a commit to cqliu1/kibana that referenced this pull request Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants