Do not access Object.prototype method ‘hasOwnProperty’ from target object no-prototype-builtins
Do not access Object.prototype method ‘hasOwnProperty’ from target object no-prototype-builtins今天在升级项目依赖发现报如下错误:Do not access Object.prototype method ‘hasOwnProperty’ from target object no-prototype-builtins发现是新版本的ESLint使用了禁止直接调用 Object.prototypes 的内置属性
原创
2021-04-20 11:02:48 ·
494 阅读 ·
0 评论