Skip to content

Commit

Permalink
jsx-eslint#969 fix: exception for jsx-no-duplicate-props
Browse files Browse the repository at this point in the history
jsx-no-duplicate-props is causing error. 
TypeError: name.toLowerCase is not a function. 
When <Element {...props}> is used.
  • Loading branch information
marcelmokos committed Jul 21, 2017
1 parent ac72383 commit dd20a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/jsx-no-duplicate-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = {

let name = decl.name.name;

if (ignoreCase) {
if (ignoreCase && typeof name === 'string') {
name = name.toLowerCase();
}

Expand Down

0 comments on commit dd20a7a

Please sign in to comment.