From dae2e5fffa70bc3ccf32ed272b4f0e6020893197 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 21 Dec 2021 10:10:28 -0800 Subject: [PATCH] tools: enable prefer-object-has-own lint rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/41245 Refs: https://eslint.org/docs/rules/prefer-object-has-own Reviewed-By: James M Snell Reviewed-By: Antoine du Hamel Reviewed-By: Tobias Nießen Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig --- .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',