Skip to content

Commit dae2e5f

Browse files
Trotttargos
authored andcommitted
tools: enable prefer-object-has-own lint rule
PR-URL: #41245 Refs: https://eslint.org/docs/rules/prefer-object-has-own Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 0951bd9 commit dae2e5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ module.exports = {
313313
{ blankLine: 'always', prev: 'function', next: 'function' },
314314
],
315315
'prefer-const': ['error', { ignoreReadBeforeAssign: true }],
316+
'prefer-object-has-own': 'error',
316317
'quotes': ['error', 'single', { avoidEscape: true }],
317318
'quote-props': ['error', 'consistent'],
318319
'rest-spread-spacing': 'error',

0 commit comments

Comments
 (0)