Fix method name and missing curly brace (#6196)
This commit is contained in:
1 parent
644b419328
commit
f070f00385
1 file changed
+3
-3
@@ -455,11 +455,11 @@ function isStyledComponents(path) {
|
||||
isStyledIdentifier(tag.callee) ||
|
||||
(tag.callee.type === "MemberExpression" &&
|
||||
((tag.callee.object.type === "MemberExpression" &&
|
||||
// styled.foo.attr({})``
|
||||
// styled.foo.attrs({})``
|
||||
(isStyledIdentifier(tag.callee.object.object) ||
|
||||
// Component.extend.attr({)``
|
||||
// Component.extend.attrs({})``
|
||||
isStyledExtend(tag.callee.object))) ||
|
||||
// styled(Component).attr({})``
|
||||
// styled(Component).attrs({})``
|
||||
(tag.callee.object.type === "CallExpression" &&
|
||||
isStyledIdentifier(tag.callee.object.callee))))
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user