eslint-plugin-cypress
Advanced tools
Comparing version 2.11.1 to 2.11.2
@@ -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 |
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
36995
604