From f8a2bec8484848bd0860cf8fdaf2c8cb1ae3169c Mon Sep 17 00:00:00 2001 From: maddhruv Date: Wed, 19 Feb 2020 11:29:37 +0530 Subject: [PATCH] fix: no-assigning-return-values eslint 4 --- lib/rules/no-assigning-return-values.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/rules/no-assigning-return-values.js b/lib/rules/no-assigning-return-values.js index a217aaea..08294bfa 100644 --- a/lib/rules/no-assigning-return-values.js +++ b/lib/rules/no-assigning-return-values.js @@ -57,8 +57,7 @@ function isCypressCommandDeclaration (declarator) { if (!object) return } - - const commandName = get(object, 'parent.property.name') + const commandName = get(declarator, 'init.callee.property.name') if (commandName && whitelistedCommands[commandName]) return