LintContext
Defined in: types.ts:44
Context provided to lint rules
Properties
Section titled “Properties”document
Section titled “document”
readonlydocument:Document
Defined in: types.ts:50
Current document being processed
documentLevels
Section titled “documentLevels”
readonlydocumentLevels:Map<string,number>
Defined in: types.ts:48
Map of document path -> level (0 is highest)
readonlylevel:number
Defined in: types.ts:52
Current document’s level
workspace
Section titled “workspace”
readonlyworkspace:SpeculatorASTSchema
Defined in: types.ts:46
Current workspace being linted
Methods
Section titled “Methods”report()
Section titled “report()”report(
diagnostic):void
Defined in: types.ts:57
Report a diagnostic
Parameters
Section titled “Parameters”diagnostic
Section titled “diagnostic”Omit<LintDiagnostic, "code" | "severity">
Returns
Section titled “Returns”void