don't consider JSXAttribute keys to be referenced identifiers - fixes #1596
This commit is contained in:
parent
8706754550
commit
34eb2babdb
@ -66,6 +66,10 @@ export function isReferenced(node: Object, parent: Object): boolean {
|
||||
case "ImportNamespaceSpecifier":
|
||||
return false;
|
||||
|
||||
// no: <div NODE="foo" />
|
||||
case "JSXAttribute":
|
||||
return parent.name !== node;
|
||||
|
||||
// no: import { NODE as foo } from "foo";
|
||||
// no: import { foo as NODE } from "foo";
|
||||
case "ImportSpecifier":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user