Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2021-12-21 21:10:28 +0300
committerGitHub <noreply@github.com>2021-12-21 21:10:28 +0300
commit340998ea55e1e223dccde69a33f16c97e6a13c29 (patch)
tree8282fac44ea5f0b807ea9e606e6f3e232ac84b12 /.eslintrc.js
parent1d34f0fefdd9947f791f1810b99596977a26e0e8 (diff)
tools: enable prefer-object-has-own lint rule
PR-URL: https://github.com/nodejs/node/pull/41245 Refs: https://eslint.org/docs/rules/prefer-object-has-own Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 840a7448238..91a9623c6d9 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',