Skip to content

Conversation

lumirlumir
Copy link
Member

@lumirlumir lumirlumir commented Sep 23, 2025

Prerequisites checklist

What is the purpose of this pull request?

In this PR, I've replaced the findOffsets helper function with the native getLocFromIndex method.

I've removed all findOffsets-related logic throughout the codebase.

I also refactored MarkdownSourceCode to use getLocFromIndex internally.

What changes did you make? (Give an overview)

In this PR, I've replaced the findOffsets helper function with the native getLocFromIndex method.

Related Issues

Refs: https://github.com/eslint/css/pull/376, eslint/rewrite#212

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

N/A

@eslintbot eslintbot added this to Triage Sep 23, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Sep 23, 2025
…or-replace-findoffsets-helper-with-native-methods
@lumirlumir lumirlumir marked this pull request as ready for review October 7, 2025 09:48
Copy link
Member

@mdjermanovic mdjermanovic 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!

@mdjermanovic mdjermanovic merged commit 8992a4d into main Oct 7, 2025
21 checks passed
@mdjermanovic mdjermanovic deleted the refactor-replace-findoffsets-helper-with-native-methods branch October 7, 2025 14:23
@github-project-automation github-project-automation bot moved this from Needs Triage to Complete in Triage Oct 7, 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