eslint-plugin-cypress
Advanced tools
Comparing version 2.13.2 to 2.13.3
@@ -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 @@ |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45469
763
1