Skip to content

[F] createRule

function createRule<N, T>(definition): LinterRuleDefinition<N, T>

Create a new linter rule.

Type Parameters

Type Parameter
N extends string
T extends DiagnosticMessages

Parameters

ParameterType
definitionLinterRuleDefinition<N, T>

Returns

LinterRuleDefinition<N, T>