consistent-indexed-object-style
Configuration
rslint.config.ts
Rule Details
Require or disallow the Record type. TypeScript supports defining object types with an index signature or using the built-in Record utility type. This rule enforces a consistent style.
The rule supports two modes: "record" (default) prefers Record<string, T> over index signatures, and "index-signature" prefers index signatures over Record.
Examples of incorrect code for this rule (with default "record" option):
Examples of correct code for this rule (with default "record" option):