LintContext
Defined in: types.ts:86
Context provided to rules during execution
Properties
Section titled “Properties”document
Section titled “document”
readonlydocument:Document
Defined in: types.ts:92
Current document being linted
documentLevels
Section titled “documentLevels”
readonlydocumentLevels:Map<string,number>
Defined in: types.ts:90
Map of document file paths to their defined levels
readonlylevel:number
Defined in: types.ts:94
Current document’s level
workspace
Section titled “workspace”
readonlyworkspace:SpeculatorASTSchema
Defined in: types.ts:88
The entire workspace object
Methods
Section titled “Methods”report()
Section titled “report()”report(
diagnostic):void
Defined in: types.ts:99
Report a diagnostic
Parameters
Section titled “Parameters”diagnostic
Section titled “diagnostic”Omit<LintDiagnostic, "code" | "severity">
Returns
Section titled “Returns”void