Logo
  • DB
  • About
  • Updates
eslint-plugin-cypress

An ESLint plugin for projects using Cypress

❯ npm i --save-dev eslint-plugin-cypress
📖 README🐛 BugsGitHub LogoGitHubnpm Logonpmcypress
🕵️‍♂️ Linter
  • 1 Config
  • 8 Rules
GitHub LogoGitHub
  • JavaScript
  • 683 Stars
  • 34 Watchers
npm Logonpm
  • 1.6M Wkly Downloads
  • +60% WoW
  • 2.15.1 47.8 kB
ConfigurationRules
recommended4
RuleDescription🔧💡💭🗂️⚙️
assertion-before-screenshot

Assert on the page state before taking a screenshot, so the screenshot is consistent

no-assigning-return-values

Prevent assigning return values of cy calls

no-async-tests

Prevent using async/await in Cypress test cases

no-force

Disallow using of 'force: true' option for click and type calls

no-pause

Disallow using of 'cy.pause' calls

no-unnecessary-waiting

Prevent waiting for arbitrary time periods

require-data-selectors

Use data-* attributes to provide context to your selectors and insulate them from CSS or JS changes https://docs.cypress.io/guides/references/best-practices.html#Selecting-Elements

unsafe-to-chain-command

Actions should be in the end of chains, not in the middle

⚙️
© 2024 Lintbase