Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 2.29 KB

cypress.md

File metadata and controls

40 lines (28 loc) · 2.29 KB

@code-pushup/eslint-config/cypress config

Config for projects using Cypress for testing.

🏗️ Setup

  1. If you haven't already, make sure to install @code-pushup/eslint-config and its required peer dependencies.

  2. Since this plugin requires additional peer dependencies, you have to install them as well:

    npm install -D eslint-plugin-cypress
  3. Add to extends in your .eslintrc file:

    {
      "extends": ["@code-pushup/eslint-config/cypress"]
    }

📏 Rules (6)

🔧 Automatically fixable by the --fix CLI option.
💡 Manually fixable by editor suggestions.

🚨 Errors (4)

Plugin Rule Options Autofix
cypress no-assigning-return-values
Prevent assigning return values of cy calls
cypress no-async-tests
Prevent using async/await in Cypress test cases
cypress no-unnecessary-waiting
Prevent waiting for arbitrary time periods
cypress unsafe-to-chain-command
Actions should be in the end of chains, not in the middle

⚠️ Warnings (2)

Plugin Rule Options Autofix
cypress no-force
Disallow using of 'force: true' option for click and type calls
cypress no-pause
Disallow using of 'cy.pause' calls