Skip to content

Commit 0d2d162

Browse files
committed
Added check for MemberExpression
1 parent a5594c1 commit 0d2d162

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/rules/jsx-key.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ module.exports = function(context) {
5252

5353
// Array.prototype.map
5454
CallExpression: function (node) {
55+
if (node.callee && node.callee.type !== 'MemberExpression') {
56+
return;
57+
}
58+
5559
if (node.callee && node.callee.property && node.callee.property.name !== 'map') {
5660
return;
5761
}

0 commit comments

Comments
 (0)