Skip to main content

Function: createTextSourceLocator()

function createTextSourceLocator(text: string): TextSourceLocator;

Defined in: _internal/text-content-lint.ts:66

Build offset-to-location helpers for raw text documents.

Parametersโ€‹

textโ€‹

string

Full document text.

Returnsโ€‹

TextSourceLocator

Locator capable of turning raw offsets into ESLint locations.