Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cypress-io/eslint-plugin-cypress
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.2.0
Choose a base ref
...
head repository: cypress-io/eslint-plugin-cypress
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.2.1
Choose a head ref
  • 7 commits
  • 35 files changed
  • 3 contributors

Commits on Mar 31, 2025

  1. ci(deps): update to cimg/node:22.14.0

    MikeMcC399 committed Mar 31, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    11733ec View commit details
  2. Merge pull request #251 from MikeMcC399/update/cimg

    ci(deps): update to cimg/node:22.14.0
    jennifer-shehane authored Mar 31, 2025
    Copy the full SHA
    cd4b9af View commit details

Commits on Apr 1, 2025

  1. ci: add test project

    MikeMcC399 committed Apr 1, 2025
    Copy the full SHA
    75607fd View commit details
  2. Update test-project/README.md

    jennifer-shehane authored Apr 1, 2025
    Copy the full SHA
    9060087 View commit details

Commits on Apr 8, 2025

  1. Merge pull request #252 from MikeMcC399/add/project-test

    ci: add test project
    jennifer-shehane authored Apr 8, 2025
    Copy the full SHA
    83af80b View commit details

Commits on Apr 9, 2025

  1. fix(deps): update all dependencies

    update
    globals to 15.15.0
    eslint to 9.24.0
    eslint-plugin-eslint-plugin to 6.4.0
    husky to 9.1.7
    semantic-release to 24.2.3
    MikeMcC399 committed Apr 9, 2025
    Copy the full SHA
    5b827eb View commit details
  2. Merge pull request #253 from MikeMcC399/update/deps

    fix(deps): update all dependencies
    jennifer-shehane authored Apr 9, 2025
    Copy the full SHA
    de3ef37 View commit details
Showing with 7,110 additions and 13,690 deletions.
  1. +82 −9 circle.yml
  2. +1 −0 eslint.config.mjs
  3. +4,592 −13,676 package-lock.json
  4. +5 −5 package.json
  5. +8 −0 test-project/.gitignore
  6. +48 −0 test-project/README.md
  7. +9 −0 test-project/cypress.config.js
  8. +143 −0 test-project/cypress/e2e/1-getting-started/todo.cy.js
  9. +321 −0 test-project/cypress/e2e/2-advanced-examples/actions.cy.js
  10. +39 −0 test-project/cypress/e2e/2-advanced-examples/aliasing.cy.js
  11. +176 −0 test-project/cypress/e2e/2-advanced-examples/assertions.cy.js
  12. +98 −0 test-project/cypress/e2e/2-advanced-examples/connectors.cy.js
  13. +118 −0 test-project/cypress/e2e/2-advanced-examples/cookies.cy.js
  14. +185 −0 test-project/cypress/e2e/2-advanced-examples/cypress_api.cy.js
  15. +85 −0 test-project/cypress/e2e/2-advanced-examples/files.cy.js
  16. +32 −0 test-project/cypress/e2e/2-advanced-examples/location.cy.js
  17. +90 −0 test-project/cypress/e2e/2-advanced-examples/misc.cy.js
  18. +55 −0 test-project/cypress/e2e/2-advanced-examples/navigation.cy.js
  19. +163 −0 test-project/cypress/e2e/2-advanced-examples/network_requests.cy.js
  20. +114 −0 test-project/cypress/e2e/2-advanced-examples/querying.cy.js
  21. +204 −0 test-project/cypress/e2e/2-advanced-examples/spies_stubs_clocks.cy.js
  22. +117 −0 test-project/cypress/e2e/2-advanced-examples/storage.cy.js
  23. +121 −0 test-project/cypress/e2e/2-advanced-examples/traversal.cy.js
  24. +107 −0 test-project/cypress/e2e/2-advanced-examples/utilities.cy.js
  25. +58 −0 test-project/cypress/e2e/2-advanced-examples/viewport.cy.js
  26. +30 −0 test-project/cypress/e2e/2-advanced-examples/waiting.cy.js
  27. +22 −0 test-project/cypress/e2e/2-advanced-examples/window.cy.js
  28. +5 −0 test-project/cypress/fixtures/example.json
  29. +25 −0 test-project/cypress/support/commands.js
  30. +17 −0 test-project/cypress/support/e2e.js
  31. +9 −0 test-project/eslint-configs/eslint.default.mjs
  32. +4 −0 test-project/eslint-configs/eslint.globals.mjs
  33. +9 −0 test-project/eslint-configs/eslint.recommended.mjs
  34. +9 −0 test-project/eslint.config.mjs
  35. +9 −0 test-project/package.json
91 changes: 82 additions & 9 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,45 @@
version: 2.1

executors:
docker-executor:
docker:
- image: cimg/node:22.14.0
resource_class: medium

workflows:
version: 2.1
main:
jobs:
- lint
- test-v8
- test-v9

- build-test-project
- test-test-project:
matrix:
parameters:
eslint-version: ['9']
config-file: [
# configurations correspond to examples in README
'default',
'recommended',
'globals',
]
requires:
- build-test-project
- release:
requires:
- lint
- test-v8
- test-v9
- test-test-project
filters:
branches:
only:
- master

jobs:
lint:
docker:
- image: cimg/node:22.11.0
executor: docker-executor
steps:
- checkout
- run:
@@ -34,8 +53,7 @@ jobs:
command: npm run lint

test-v8:
docker:
- image: cimg/node:22.11.0
executor: docker-executor
steps:
- checkout
- run:
@@ -52,8 +70,7 @@ jobs:
command: npm run test:legacy

test-v9:
docker:
- image: cimg/node:22.11.0
executor: docker-executor
steps:
- checkout
- run:
@@ -69,9 +86,65 @@ jobs:
name: Test ESLint 9
command: npm test

build-test-project:
executor: docker-executor
steps:
- checkout
- run:
name: Install dependencies
command: npm ci
- run:
name: Build tarball
command: npm pack
- run:
name: Get version
command: |
echo "PLUGIN_VERSION=$(jq -r '.version' package.json)" >> $BASH_ENV
cp $BASH_ENV bash.env
- persist_to_workspace:
root: .
paths:
- eslint-plugin-cypress-*.tgz
- bash.env

test-test-project:
description: Run ESLint with different configurations
parameters:
eslint-version:
description: Version of ESLint to use
default: 'latest'
type: string
config-file:
description: Configuration file
default: 'default'
type: string
executor: docker-executor
working_directory: ./test-project
steps:
- checkout:
path: ../
- attach_workspace:
at: .
- run:
name: Get plugin version
command: |
cat bash.env >> $BASH_ENV
- run:
name: Install dependencies
command: |
npm install eslint@<< parameters.eslint-version>> ./eslint-plugin-cypress-$PLUGIN_VERSION.tgz -D
- run:
name: Display ESLint version
command: |
npx eslint --version
- run: echo Testing a << parameters.config-file >> configuration
- run:
name: Lint with example configuration
command: |
npx eslint --config ./eslint-configs/eslint.<< parameters.config-file >>.mjs .
release:
docker:
- image: cimg/node:22.11.0
executor: docker-executor
steps:
- checkout
- run:
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@ export default [
pluginJs.configs.recommended,
eslintPlugin.configs['flat/recommended'],
mochaPlugin.configs.flat.recommended,
{ignores: ['test-project/']},
{
languageOptions: {
globals: globals.node
Loading