Socket
Socket
Sign inDemoInstall

eslint-plugin-cypress

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-cypress - npm Package Compare versions

Comparing version 2.11.1 to 2.11.2

4

lib/rules/no-assigning-return-values.js

@@ -42,3 +42,3 @@ 'use strict'

const whitelistedCommands = {
const allowedCommands = {
now: true,

@@ -65,5 +65,5 @@ spy: true,

if (commandName && (whitelistedCommands[commandName] || whitelistedCommands[parent])) return
if (commandName && (allowedCommands[commandName] || allowedCommands[parent])) return
return object.name === 'cy'
}

@@ -59,3 +59,4 @@ 'use strict'

const resolvedIdentifier = scope.resolve(node.arguments[0]).resolved
const identifier = node.arguments[0]
const resolvedIdentifier = scope.references.find((ref) => ref.identifier === identifier).resolved
const definition = resolvedIdentifier.defs[0]

@@ -62,0 +63,0 @@ const isVariable = definition.type === 'Variable'

{
"name": "eslint-plugin-cypress",
"version": "2.11.1",
"version": "2.11.2",
"description": "An ESLint plugin for projects using Cypress",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -14,3 +14,3 @@ # Cypress ESLint Plugin [![CircleCI](https://circleci.com/gh/cypress-io/eslint-plugin-cypress/tree/master.svg?style=svg)](https://circleci.com/gh/cypress-io/eslint-plugin-cypress/tree/master)

```sh
yarn add eslint-plugin-cypress --save-dev
yarn add eslint-plugin-cypress --dev
```

@@ -44,3 +44,3 @@

You can whitelist globals provided by Cypress:
You can allow certain globals provided by Cypress:

@@ -47,0 +47,0 @@ ```json

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc