Skip to content

Commit 6918bba

Browse files
authored
jsx-eslint#969 fix: exception for jsx-no-duplicate-props
jsx-no-duplicate-props is causing error. TypeError: name.toLowerCase is not a function. When <Element {...props}> is used.
1 parent 11117a4 commit 6918bba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/jsx-no-duplicate-props.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = {
4646

4747
var name = decl.name.name;
4848

49-
if (ignoreCase) {
49+
if (ignoreCase && typeof name === 'string') {
5050
name = name.toLowerCase();
5151
}
5252

0 commit comments

Comments
 (0)