Skip to main content

Type Alias: CreateStylelintRuleOptions<P, S, M>

CreateStylelintRuleOptions<P, S, M> = Readonly<{ docs: StylelintRuleDocs; messages: M; meta?: Readonly<Except<RuleMeta, "url"> & { url?: string; }>; primaryOptionArray?: boolean; rule: RuleBase<P, S>; ruleName: string; }>

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

Input contract for the shared Stylelint rule creator.

Type Parametersโ€‹

Pโ€‹

P = unknown

Sโ€‹

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

Mโ€‹

M extends RuleMessages = RuleMessages