no-unsafe-member-access
Configuration
rslint.config.ts
Rule Details
Disallow member access on a value with type any.
Accessing a member (property or element) on an any-typed value is unsafe because the result will also be typed as any, propagating the lack of type safety. This rule flags both dot-notation property access and bracket-notation element access on any-typed values, as well as computed member access where the index expression is typed as any.
Examples of incorrect code for this rule:
Examples of correct code for this rule: