diff --git a/packages/jsts/src/rules/helpers/ast.ts b/packages/jsts/src/rules/helpers/ast.ts index f9efb02fe15..73bb5665d46 100644 --- a/packages/jsts/src/rules/helpers/ast.ts +++ b/packages/jsts/src/rules/helpers/ast.ts @@ -430,14 +430,14 @@ export function getPropertyWithValue( function getPropertyFromSpreadElement( spreadElement: estree.SpreadElement, - propertyName: string, + key: string, ctx: Rule.RuleContext, ): estree.Property | null | undefined { const props = getValueOfExpression(ctx, spreadElement.argument, 'ObjectExpression'); if (props === undefined) { return undefined; } - return getProperty(props, propertyName, ctx); + return getProperty(props, key, ctx); } /**