no-redundant-type-constituents
Configuration
rslint.config.ts
Rule Details
Disallow members of unions and intersections that do nothing or override other members.
Some types can override other types in a union or intersection, rendering them redundant. For example, any in a union type overrides all other members, and never in an intersection type overrides all other members. These redundant constituents can be misleading and should be removed.
Examples of incorrect code for this rule:
Examples of correct code for this rule: