Skip to content

Commit 34dfc60

Browse files
Trottruyadorno
authored andcommitted
tools,test: enable no-prototype-builtins
PR-URL: #41801 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Mestery <[email protected]>
1 parent 87902a7 commit 34dfc60

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

.eslintrc.js

-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ module.exports = {
297297
// ESLint recommended rules that we disable
298298
'no-empty': 'off',
299299
'no-inner-declarations': 'off',
300-
'no-prototype-builtins': 'off',
301300

302301
// JSDoc recommended rules that we disable
303302
'jsdoc/require-jsdoc': 'off',

test/js-native-api/test_object/test_null.js

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const expectedForProperty = {
1414
assert.deepStrictEqual(testNull.setProperty(), expectedForProperty);
1515
assert.deepStrictEqual(testNull.getProperty(), expectedForProperty);
1616
assert.deepStrictEqual(testNull.hasProperty(), expectedForProperty);
17+
// eslint-disable-next-line no-prototype-builtins
1718
assert.deepStrictEqual(testNull.hasOwnProperty(), expectedForProperty);
1819
// It's OK not to want the result of a deletion.
1920
assert.deepStrictEqual(testNull.deleteProperty(),

0 commit comments

Comments
 (0)