Skip to content
Permalink
Browse files

fix: no-assigning-return-values eslint 4

  • Loading branch information
maddhruv committed Feb 19, 2020
1 parent 6c1d538 commit f8a2bec8484848bd0860cf8fdaf2c8cb1ae3169c
Showing with 1 addition and 2 deletions.
  1. +1 −2 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

0 comments on commit f8a2bec

Please sign in to comment.
You can’t perform that action at this time.