Skip to content

Commit dd20a7a

Browse files
committed
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 ac72383 commit dd20a7a

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
@@ -45,7 +45,7 @@ module.exports = {
4545

4646
let name = decl.name.name;
4747

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

0 commit comments

Comments
 (0)