Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions apps/oxlint/src-js/plugins/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,19 @@ export interface SuggestionReport {
fixes: FixReport[];
}

// Diagnostic in form sent to Rust.
// Actually, the `messageId` field is removed before sending to Rust.
/**
* Diagnostic in form sent to Rust.
*/
export interface DiagnosticReport {
message: string;
start: number;
end: number;
ruleIndex: number;
fixes: FixReport[] | null;
suggestions: SuggestionReport[] | null;
// Not needed on Rust side, but `RuleTester` needs it
messageId: string | null;
// Only used in conformance tests
// Only used in conformance tests. This field is not present except in conformance build.
loc?: LocationWithOptionalEnd | null;
}

Expand Down
Loading