Skip to content

Commit

Permalink
Added check for MemberExpression
Browse files Browse the repository at this point in the history
  • Loading branch information
jkimbo committed Feb 19, 2016
1 parent a5594c1 commit 0d2d162
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/rules/jsx-key.js
Expand Up @@ -52,6 +52,10 @@ module.exports = function(context) {

// Array.prototype.map
CallExpression: function (node) {
if (node.callee && node.callee.type !== 'MemberExpression') {
return;
}

if (node.callee && node.callee.property && node.callee.property.name !== 'map') {
return;
}
Expand Down

0 comments on commit 0d2d162

Please sign in to comment.