Skip to content

LintContext

Defined in: types.ts:86

Context provided to rules during execution

readonly document: Document

Defined in: types.ts:92

Current document being linted


readonly documentLevels: Map<string, number>

Defined in: types.ts:90

Map of document file paths to their defined levels


readonly level: number

Defined in: types.ts:94

Current document’s level


readonly workspace: SpeculatorASTSchema

Defined in: types.ts:88

The entire workspace object

report(diagnostic): void

Defined in: types.ts:99

Report a diagnostic

Omit<LintDiagnostic, "code" | "severity">

void