From 6918bba271fccec28f40561f91e9808d5b91d7be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20Moko=C5=A1?= Date: Sun, 4 Jun 2017 12:07:41 +0200 Subject: [PATCH] #969 fix: exception for jsx-no-duplicate-props jsx-no-duplicate-props is causing error. TypeError: name.toLowerCase is not a function. When is used. --- lib/rules/jsx-no-duplicate-props.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rules/jsx-no-duplicate-props.js b/lib/rules/jsx-no-duplicate-props.js index 092f0597b1..54c9db4ef0 100644 --- a/lib/rules/jsx-no-duplicate-props.js +++ b/lib/rules/jsx-no-duplicate-props.js @@ -46,7 +46,7 @@ module.exports = { var name = decl.name.name; - if (ignoreCase) { + if (ignoreCase && typeof name === 'string') { name = name.toLowerCase(); }