no-with
Configuration
rslint.config.ts
Rule Details
Disallow with statements.
The with statement is potentially problematic because it adds members of an object to the current scope, making it impossible to tell what a variable inside the block actually refers to. In strict mode, with statements are not allowed at all.
Examples of incorrect code for this rule:
Examples of correct code for this rule: