Skip to main content

Function: createStylelintRule()

function createStylelintRule<P, S, M>(
options: CreateStylelintRuleOptions<P, S, M>
): StylelintPluginRule<P, S, M>;

Defined in: _internal/create-stylelint-rule.ts:63

Create a Stylelint plugin object while stamping the static runtime metadata that Stylelint and this template expect.

Type Parametersโ€‹

Pโ€‹

P = unknown

Sโ€‹

S = | Readonly<Record<string, never>> | undefined

Mโ€‹

M extends RuleMessages = RuleMessages

Parametersโ€‹

optionsโ€‹

CreateStylelintRuleOptions<P, S, M>

Returnsโ€‹

StylelintPluginRule<P, S, M>