Skip to main content

Function: createRetextMessageSourceLocation()

createRetextMessageSourceLocation(comment: Readonly<Comment>, sourceCode: Readonly<TSESLint.SourceCode>, message: Readonly<Pick<RetextLintMessage, "endOffset" | "startOffset">>): SourceLocation

Defined in: _internal/retext.ts:284

Convert normalized retext message offsets into an ESLint source location.

Parameters

comment

Readonly<Comment>

sourceCode

Readonly<TSESLint.SourceCode>

message

Readonly<Pick<RetextLintMessage, "endOffset" | "startOffset">>

Returns

SourceLocation