Reputation: 1525
Is there any way to tell eslint
that using operator in
is not allowed?
I mean:
console.log(1 in [1]);
Upvotes: 2
Views: 366
Reputation: 722
For instance, you might decide to disallow the use of try-catch or class, or you might decide to disallow the use of the in operator.
http://eslint.org/docs/rules/no-restricted-syntax
Upvotes: 3