TypeScript · Senior · Question 60 of 75
What do the typescript-eslint no-unsafe-* rules help with?
- ✓Correct answer: Containing
any- they flag assigning, calling, returning or accessing members ofanyvalues - 2Detecting XSS
- 3Removing unused types
Explanation
any spreads silently through code. These rules force a conversion to unknown or a validated type at the boundary.