We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c1d538 commit f8a2becCopy full SHA for f8a2bec
lib/rules/no-assigning-return-values.js
@@ -57,8 +57,7 @@ function isCypressCommandDeclaration (declarator) {
57
58
if (!object) return
59
}
60
-
61
- const commandName = get(object, 'parent.property.name')
+ const commandName = get(declarator, 'init.callee.property.name')
62
63
if (commandName && whitelistedCommands[commandName]) return
64
0 commit comments