Skip to content

Commit

Permalink
fix: Add support for eslint 4 to no-assigning-return-values rule
Browse files Browse the repository at this point in the history
fix: no-assigning-return-values eslint 4, Resolves #14
  • Loading branch information
chrisbreiding authored Feb 19, 2020
2 parents 091df8a + f8a2bec commit 46bf46a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rules/no-assigning-return-values.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 46bf46a

Please sign in to comment.