{"id":22825850,"url":"https://github.com/wlsf82/cy-eslint-example","last_synced_at":"2025-04-23T08:15:10.424Z","repository":{"id":228846149,"uuid":"626156595","full_name":"wlsf82/cy-eslint-example","owner":"wlsf82","description":"Sample project to demonstrate the rules of eslint-plugin-cypress.","archived":false,"fork":false,"pushed_at":"2023-04-11T22:04:16.000Z","size":56,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T08:15:02.513Z","etag":null,"topics":["cypress","cypress-io","eslint","eslint-plugin-cypress","talking-about-testing","testing","web-testing"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/live/3WEQ23HfzQU?feature=share","language":"HTML","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wlsf82.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-04-10T23:12:18.000Z","updated_at":"2024-06-04T18:11:44.000Z","dependencies_parsed_at":"2024-03-20T19:41:12.115Z","dependency_job_id":"1476baff-48db-4c96-9b00-fac91e2e2dee","html_url":"https://github.com/wlsf82/cy-eslint-example","commit_stats":null,"previous_names":["wlsf82/cy-eslint-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlsf82%2Fcy-eslint-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlsf82%2Fcy-eslint-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlsf82%2Fcy-eslint-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlsf82%2Fcy-eslint-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wlsf82","download_url":"https://codeload.github.com/wlsf82/cy-eslint-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250395285,"owners_count":21423400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cypress","cypress-io","eslint","eslint-plugin-cypress","talking-about-testing","testing","web-testing"],"created_at":"2024-12-12T17:12:16.896Z","updated_at":"2025-04-23T08:15:10.397Z","avatar_url":"https://github.com/wlsf82.png","language":"HTML","readme":"# cy-eslint-example\n\n[![ESLint](https://github.com/wlsf82/cy-eslint-example/actions/workflows/ci.yml/badge.svg)](https://github.com/wlsf82/cy-eslint-example/actions)\n\nSample project to demonstrate the rules of [`eslint-plugin-cypress`](https://www.npmjs.com/package/eslint-plugin-cypress).\n\n___\n\n## Pre-requirements\n\nTo clone and run this project, you will need:\n\n- [git](https://git-scm.com/downloads) (I've used version `2.34.1` while writing this doc)\n- [Node.js](https://nodejs.org/en/) (I've used version `v18.13.0` while writing this doc)\n- npm (I've used version `8.19.3` while writing this doc)\n\n**Note:** When installing Node.js, npm is automatically installed too.\n\n## Installation\n\nTo install the dev dependencies, run `npm install` (or `npm i` for short.)\n\n## Running the static code analysis\n\nTo run the EcmaScript static code analysis, run `npm run lint`.\n\n\u003e Below is an example of some linting issues.\n\n```sh\n   7:5   error    Do not assign the return value of a Cypress command                                                                                                                  cypress/no-assigning-return-values\n   7:11  error    'heading' is assigned a value but never used                                                                                                                         no-unused-vars\n   7:21  warning  use data-* attribute selectors instead of classes or tag names                                                                                                       cypress/require-data-selectors\n  11:5   error    Do not wait for arbitrary time periods                                                                                                                               cypress/no-unnecessary-waiting\n  14:3   error    Avoid using async functions with Cypress tests                                                                                                                       cypress/no-async-tests\n  15:11  error    'heading' is assigned a value but never used                                                                                                                         no-unused-vars\n  15:27  warning  use data-* attribute selectors instead of classes or tag names                                                                                                       cypress/require-data-selectors\n  19:5   error    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\n  19:5   warning  use data-* attribute selectors instead of classes or tag names                                                                                                       cypress/require-data-selectors\n  25:5   warning  use data-* attribute selectors instead of classes or tag names                                                                                                       cypress/require-data-selectors\n  26:5   error    Do not use force on click and type calls                                                                                                                             cypress/no-force\n  26:5   warning  use data-* attribute selectors instead of classes or tag names                                                                                                       cypress/require-data-selectors\n  30:5   error    Make an assertion on the page state before taking a screenshot                                                                                                       cypress/assertion-before-screenshot\n  34:5   warning  use data-* attribute selectors instead of classes or tag names                                                                                                       cypress/require-data-selectors\n  38:5   error    Do not use cy.pause command                                                                                                                                          cypress/no-pause\n\n✖ 15 problems (9 errors, 6 warnings)\n\n```\n\n## Support this project\n\nTo support this project, leave a ⭐.\n\n___\n\nMade with ❤️ by [Walmyr](https://walmyr.dev).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwlsf82%2Fcy-eslint-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwlsf82%2Fcy-eslint-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwlsf82%2Fcy-eslint-example/lists"}