pasika 0.10.66 → 0.10.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5728,9 +5728,8 @@ function directPropertyBinding(context, declarator) {
|
|
|
5728
5728
|
if (declarator.id.type !== "Identifier" || hasTypeAnnotation(declarator.id)) return void 0;
|
|
5729
5729
|
if (declarator.init?.type !== "MemberExpression") return void 0;
|
|
5730
5730
|
const member = declarator.init;
|
|
5731
|
-
if (member.computed || member.optional || member.property.type !== "Identifier"
|
|
5732
|
-
|
|
5733
|
-
}
|
|
5731
|
+
if (member.computed || member.optional || member.property.type !== "Identifier") return void 0;
|
|
5732
|
+
if (!canGroupSource(member.object)) return void 0;
|
|
5734
5733
|
if (context.sourceCode.getCommentsInside(declarator).length > 0) return void 0;
|
|
5735
5734
|
const propertyName4 = member.property.name;
|
|
5736
5735
|
const localName = declarator.id.name;
|