有什么方法可以告诉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.
关于javascript - Eslint:禁用运算符 `in`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40504402/