Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-cypress

Package Overview
Dependencies
Maintainers
3
Versions
47
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.13.2 to 2.13.3

5

lib/rules/no-unnecessary-waiting.js

@@ -72,2 +72,7 @@ 'use strict'

// import { WAIT } from './constants'
// cy.wait(WAIT)
// we don't know if WAIT is a number or alias '@someRequest', so don't fail
if (definition.type === 'ImportBinding') return false
const param = definition.node.params[definition.index]

@@ -74,0 +79,0 @@

4

package.json
{
"name": "eslint-plugin-cypress",
"version": "2.13.2",
"version": "2.13.3",
"description": "An ESLint plugin for projects using Cypress",
"main": "index.js",
"author": "Chris Breiding (chris@cypress.io)",
"author": "Cypress-io",
"license": "MIT",

@@ -8,0 +8,0 @@ "keywords": [

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

const errors = [{ messageId: 'unexpected' }]
const parserOptions = { ecmaVersion: 6 }
const parserOptions = { ecmaVersion: 6, sourceType: 'module' }

@@ -31,2 +31,7 @@ ruleTester.run('no-unnecessary-waiting', rule, {

{ code: 'import BAR_BAZ from "bar-baz"; cy.wait(BAR_BAZ)', parserOptions },
{ code: 'import { FOO_BAR } from "foo-bar"; cy.wait(FOO_BAR)', parserOptions },
{ code: 'import * as wildcard from "wildcard"; cy.wait(wildcard.value)', parserOptions },
{ code: 'import { NAME as OTHER_NAME } from "rename"; cy.wait(OTHER_NAME)', parserOptions },
// disable the eslint rule

@@ -33,0 +38,0 @@ {

Sorry, the diff of this file is not supported yet

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