From 3ba9f42781ff6e0784a314d93c55b09f6438fbaa Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 19 Dec 2021 07:45:13 -0800 Subject: [PATCH] tools: enable prefer-object-has-own lint rule --- .eslintrc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.js b/.eslintrc.js index 840a7448238816..91a9623c6d905f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -313,6 +313,7 @@ module.exports = { { blankLine: 'always', prev: 'function', next: 'function' }, ], 'prefer-const': ['error', { ignoreReadBeforeAssign: true }], + 'prefer-object-has-own': 'error', 'quotes': ['error', 'single', { avoidEscape: true }], 'quote-props': ['error', 'consistent'], 'rest-spread-spacing': 'error',