Giter Club home page Giter Club logo

Comments (11)

mschile avatar mschile commented on August 15, 2024 1

Hi @MikeMcC399 👋, thanks for logging this issue. I took a cursory look at the reported errors and the rule appears to be correct so we should do #2 and update the examples.

from cypress-example-kitchensink.

MikeMcC399 avatar MikeMcC399 commented on August 15, 2024 1

Hi @mschile

Thank you very much for qualifying this issue!

I can't provide a solution for this issue, so I would be happy for the core team to make the changes in the examples.

from cypress-example-kitchensink.

MikeMcC399 avatar MikeMcC399 commented on August 15, 2024 1

@jennifer-shehane

@MikeMcC399 I'd be fine with an update to the example recipes to reflect our new conventions. We just never revisited this.

This issue is still open because as I said previously I don't have the skills for this and nobody else has picked it up.

from cypress-example-kitchensink.

MikeMcC399 avatar MikeMcC399 commented on August 15, 2024
  • I have proposed a fix for a related issue in #662. For the waiting issue I propose to ignore the rule.

from cypress-example-kitchensink.

MikeMcC399 avatar MikeMcC399 commented on August 15, 2024

@mschile

unsafe-to-chain is currently disabled in this repo pending update of the examples to conform to linting rules.

The latest new release from Aug 8, 2023 [email protected] causes additional 8 problems to be flagged if the rule is enabled:

✖ 59 problems (59 errors, 0 warnings)

instead of the previous

✖ 51 problems (51 errors, 0 warnings)

It would be good for the examples to be updated so that they can be used as a reference for what is correct. Perhaps this fix could be scheduled some time soon?

from cypress-example-kitchensink.

MikeMcC399 avatar MikeMcC399 commented on August 15, 2024

Updating to [email protected] (current latest) causes now 59 "unsafe to chain" errors when checking with

  "rules": {
    "cypress/unsafe-to-chain-command": "error"
  }

The rule is currently disabled and waiting for the examples to be corrected so they conform to the chaining rules as described in the https://docs.cypress.io/api/table-of-contents documentation.

// TODO: remove after https://github.com/cypress-io/cypress-example-kitchensink/issues/661 has been resolved
"cypress/unsafe-to-chain-command": "off",

from cypress-example-kitchensink.

MikeMcC399 avatar MikeMcC399 commented on August 15, 2024

Unfortunately I'm unable to provide a PR to resolve this issue, which remains unaddressed.

Steps to reproduce

Comment out

"cypress/unsafe-to-chain-command": "off",

and then execute

npm run lint

shows

✖ 57 problems (57 errors, 0 warnings)

from cypress-example-kitchensink.

enchorb avatar enchorb commented on August 15, 2024

+1

from cypress-example-kitchensink.

jennifer-shehane avatar jennifer-shehane commented on August 15, 2024

@MikeMcC399 I'd be fine with an update to the example recipes to reflect our new conventions. We just never revisited this.

from cypress-example-kitchensink.

MikeMcC399 avatar MikeMcC399 commented on August 15, 2024

from cypress-example-kitchensink.

cypress-app-bot avatar cypress-app-bot commented on August 15, 2024

🎉 This issue has been resolved in version 2.0.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

from cypress-example-kitchensink.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.