Skip to content

Commit 7a6fa69

Browse files
1 parent 4a75afe commit 7a6fa69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rules/no-array-prototype-extensions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const EXTENSION_METHODS = new Set([
5050
'removeObject',
5151
'removeObjects',
5252
'reverseObjects',
53-
'setObject',
53+
'setObjects',
5454
'shiftObject',
5555
'unshiftObject',
5656
'unshiftObjects',

tests/lib/rules/no-array-prototype-extensions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ import { get as g } from '@custom/object';
12901290
errors: [{ messageId: 'main', type: 'CallExpression' }],
12911291
},
12921292
{
1293-
code: 'something.setObject()',
1293+
code: 'something.setObjects()',
12941294
output: null,
12951295
errors: [{ messageId: 'main', type: 'CallExpression' }],
12961296
},

0 commit comments

Comments
 (0)