Skip to content

Rulepack

Defined in: pack.ts:20

optional categories?: Record<string, Category>

Defined in: pack.ts:30

Category metadata keyed by category id.


optional configs?: Record<string, Config>

Defined in: pack.ts:32

Named preset configs consumers can extends, e.g. configs.recommended.


name: string

Defined in: pack.ts:22

Namespace used to reference this pack’s rules, e.g. ‘ai-style’.


rules: Record<string, Rule<any>>

Defined in: pack.ts:28

Rules keyed by their short name (the part after ‘name/’). Stored as Rule<any> because a pack holds rules with heterogeneous Options types; each rule keeps its own typing at the defineRule call site.