https://cypress.io logo
Why does the pre-commit eslint hook finds this err...
# general-chat
g
Why does the pre-commit eslint hook finds this error:
Copy code
bash
It is unsafe to chain further commands that rely on the subject after this command. It is best to split the chain, chaining again from `cy.` in a next command line  cypress/unsafe-to-chain-command
for this line:
Copy code
js
cy.get(`[data-cy='${chart.dataCy}']`).scrollIntoView().should("be.visible");
but Cypress passes all the tests and doesn't care about that line ?