no-unsafe-assignment
Configuration
rslint.config.ts
Rule Details
Disallow assigning a value with type any to variables and properties.
Assigning an any-typed value to a variable or property circumvents TypeScript's type checking. This rule flags unsafe assignments including direct assignments, variable declarations, array destructuring with any elements, object destructuring with any properties, and array spreads of any-typed values.
Examples of incorrect code for this rule:
Examples of correct code for this rule: