Skip to content

[I] LinterRule

Resolved instance of a linter rule that will run.

Extends

Type Parameters

Type Parameter
N extends string
DM extends DiagnosticMessages

Properties

PropertyTypeDescriptionInherited from
descriptionstringShort description of the ruleLinterRuleDefinition.description
idstringExpanded rule id in format <library-name>:<rule-name>-
messagesDMMessages that can be reported with the diagnostic.LinterRuleDefinition.messages
nameNRule name (without the library name)LinterRuleDefinition.name
severity"warning"Rule default severity.LinterRuleDefinition.severity
url?stringSpecifies the URL at which the full documentation can be accessed.LinterRuleDefinition.url

Methods

create()

create(context): SemanticNodeListener

Creator

Parameters

ParameterType
contextLinterRuleContext<DM>

Returns

SemanticNodeListener

Inherited from

LinterRuleDefinition.create