ReportDescriptor
Defined in: rule.ts:53
What a rule passes to ctx.report. Give a location as either an explicit
span or a set of tokens (with the sentence they belong to, so the engine
can resolve their byte offsets to a global char span). Give the message as a
literal message, or a messageId into meta.messages with data for
{{placeholder}} interpolation.
Properties
Section titled “Properties”
optionaldata?:Record<string,string|number>
Defined in: rule.ts:59
optionalfix?:TextFix
Defined in: rule.ts:60
message?
Section titled “message?”
optionalmessage?:string
Defined in: rule.ts:58
messageId?
Section titled “messageId?”
optionalmessageId?:string
Defined in: rule.ts:57
sentence?
Section titled “sentence?”
optionalsentence?:DepSentence
Defined in: rule.ts:56
optionalspan?:object
Defined in: rule.ts:54
end:
number
start:
number
suggestion?
Section titled “suggestion?”
optionalsuggestion?:string
Defined in: rule.ts:61
tokens?
Section titled “tokens?”
optionaltokens?:DepToken[]
Defined in: rule.ts:55