Eslint:禁用运算符“in”
Eslint: disable operator `in`
有什么方法可以告诉 eslint
不允许使用运算符 in
吗?
我的意思是:
console.log(1 in [1]);
不允许指定语法(无限制语法)
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.
有什么方法可以告诉 eslint
不允许使用运算符 in
吗?
我的意思是:
console.log(1 in [1]);
不允许指定语法(无限制语法)
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.