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 <targos@protonmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
  • Loading branch information
Trott authored and danielleadams committed Mar 14, 2022
1 parent 673c1fd commit 6612056
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 6612056

Please sign in to comment.