diff options
author | Rich Trott <rtrott@gmail.com> | 2021-12-21 21:10:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-21 21:10:28 +0300 |
commit | 340998ea55e1e223dccde69a33f16c97e6a13c29 (patch) | |
tree | 8282fac44ea5f0b807ea9e606e6f3e232ac84b12 /.eslintrc.js | |
parent | 1d34f0fefdd9947f791f1810b99596977a26e0e8 (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.js | 1 |
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', |