Skip to content

Commit

Permalink
tools,test: enable no-prototype-builtins
Browse files Browse the repository at this point in the history
PR-URL: #41801
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Mestery <[email protected]>
  • Loading branch information
Trott authored and ruyadorno committed Feb 8, 2022
1 parent 87902a7 commit 34dfc60
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ module.exports = {
// ESLint recommended rules that we disable
'no-empty': 'off',
'no-inner-declarations': 'off',
'no-prototype-builtins': 'off',

// JSDoc recommended rules that we disable
'jsdoc/require-jsdoc': 'off',
Expand Down
1 change: 1 addition & 0 deletions test/js-native-api/test_object/test_null.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const expectedForProperty = {
assert.deepStrictEqual(testNull.setProperty(), expectedForProperty);
assert.deepStrictEqual(testNull.getProperty(), expectedForProperty);
assert.deepStrictEqual(testNull.hasProperty(), expectedForProperty);
// eslint-disable-next-line no-prototype-builtins
assert.deepStrictEqual(testNull.hasOwnProperty(), expectedForProperty);
// It's OK not to want the result of a deletion.
assert.deepStrictEqual(testNull.deleteProperty(),
Expand Down

0 comments on commit 34dfc60

Please sign in to comment.