cypress-io / eslint-plugin-cypress

An ESLint plugin for projects that use Cypress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cypress/unsafe-to-chain-command not exported from the package

Michsior14 opened this issue · comments

The latest version (2.13.0) leads to error during eslint execution:

 error  Definition for rule 'cypress/unsafe-to-chain-command' was not found  cypress/unsafe-to-chain-command

Looks like it's not exported in index.js file: https://github.com/cypress-io/eslint-plugin-cypress/blob/master/index.js#L11

Here's a PR to solve the issue: #126

commented

This issue should be resolved in the latest release. I am going to close this issue. If the latest release does not address your issue please throw a comment here and we can reopen and investigate further.

I think this still isn't fixed, we're getting the same error now using 2.13.3. I think L11 in unsafe-to-chain-command.js should be:

ruleTester.run('unsafe-to-chain-command', rule, {

rather than 'action-ends-chain'

ruleTester.run('action-ends-chain', rule, {

Hmm, just noticed this is in the tests, so should really affect us. Does anyone else still have this issue? Otherwise it might be something we need to fix

I have this issue and would like to see it resolved, please

commented

@alistaireverett and @TD-DO , please open a new issue with a reproducible example and the Cypress team will be happy to investigate. You can reference this issue in the description.