Skip to content

Conversation

lumirlumir
Copy link
Member

@lumirlumir lumirlumir commented Sep 29, 2025

Prerequisites checklist

What is the purpose of this pull request?

This PR originated from #536. While working on that, I found the scope had become too large, so I split this refactoring into a separate PR.

In this PR, I've used the native getLocFromIndex method added in #376 instead of the custom findOffsets util.

Notable changes:

  • Replace the findOffsets util with the native getLocFromIndex.
  • Use ESQuery selectors to reduce duplicated logic.

What changes did you make? (Give an overview)

In this PR, I've used the native getLocFromIndex method added in #376 instead of the custom findOffsets util.

Related Issues

Ref: #376, #536

Is there anything you'd like reviewers to focus on?

N/A

@eslintbot eslintbot added this to Triage Sep 29, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Sep 29, 2025
@lumirlumir lumirlumir requested review from a team and mdjermanovic September 29, 2025 10:21
@lumirlumir
Copy link
Member Author

lumirlumir commented Sep 29, 2025

To apply the feedback from #541, I'll mark this PR as a draft shortly.


All clear.

@lumirlumir lumirlumir marked this pull request as draft September 29, 2025 13:06
@lumirlumir lumirlumir marked this pull request as ready for review September 29, 2025 13:15
Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@nzakas nzakas merged commit 1bd528f into main Sep 29, 2025
23 checks passed
@nzakas nzakas deleted the refactor-use-getlocfromindex-in-no-multiple-h1 branch September 29, 2025 14:16
@github-project-automation github-project-automation bot moved this from Needs Triage to Complete in Triage Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

2 participants