no-with
Recommended
Disallows the usage of with statements.
Disallows the usage of with statements.
The with statement is discouraged as it may be the source of confusing bugs
and compatibility issues. For more details, see with - JavaScript | MDN.
Invalid:
with (someVar) {
console.log("foo");
}