From 3f38aa1e278da5084fafef815e923266c4bbba1d Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Mon, 6 May 2024 20:33:46 +0200 Subject: [PATCH] fix: clean unused eslint disables (#837) --- cypress/e2e/2-advanced-examples/connectors.cy.js | 1 - cypress/e2e/2-advanced-examples/cypress_api.cy.js | 1 - cypress/e2e/2-advanced-examples/navigation.cy.js | 3 --- cypress/e2e/2-advanced-examples/spies_stubs_clocks.cy.js | 2 -- 4 files changed, 7 deletions(-) diff --git a/cypress/e2e/2-advanced-examples/connectors.cy.js b/cypress/e2e/2-advanced-examples/connectors.cy.js index 0f9a0380a..e9df23ad1 100644 --- a/cypress/e2e/2-advanced-examples/connectors.cy.js +++ b/cypress/e2e/2-advanced-examples/connectors.cy.js @@ -9,7 +9,6 @@ context('Connectors', () => { // https://on.cypress.io/each cy.get('.connectors-each-ul>li') .each(($el, index, $list) => { - // eslint-disable-next-line no-console console.log($el, index, $list) }) }) diff --git a/cypress/e2e/2-advanced-examples/cypress_api.cy.js b/cypress/e2e/2-advanced-examples/cypress_api.cy.js index 1b25ccc6d..c8322e65f 100644 --- a/cypress/e2e/2-advanced-examples/cypress_api.cy.js +++ b/cypress/e2e/2-advanced-examples/cypress_api.cy.js @@ -20,7 +20,6 @@ context('Cypress APIs', () => { method = method || 'log' // log the subject to the console - // eslint-disable-next-line no-console console[method]('The subject is', subject) // whatever we return becomes the new subject diff --git a/cypress/e2e/2-advanced-examples/navigation.cy.js b/cypress/e2e/2-advanced-examples/navigation.cy.js index 98b713e4f..3ebc52ce9 100644 --- a/cypress/e2e/2-advanced-examples/navigation.cy.js +++ b/cypress/e2e/2-advanced-examples/navigation.cy.js @@ -39,8 +39,6 @@ context('Navigation', () => { // https://on.cypress.io/visit // Visit any sub-domain of your current domain - - /* eslint-disable no-unused-vars */ // Pass options to the visit cy.visit('http://localhost:8080/commands/navigation', { timeout: 50000, // increase total time for the visit to resolve @@ -53,6 +51,5 @@ context('Navigation', () => { expect(typeof contentWindow === 'object').to.be.true }, }) - /* eslint-enable no-unused-vars */ }) }) diff --git a/cypress/e2e/2-advanced-examples/spies_stubs_clocks.cy.js b/cypress/e2e/2-advanced-examples/spies_stubs_clocks.cy.js index 49f703f1f..710306477 100644 --- a/cypress/e2e/2-advanced-examples/spies_stubs_clocks.cy.js +++ b/cypress/e2e/2-advanced-examples/spies_stubs_clocks.cy.js @@ -25,7 +25,6 @@ context('Spies, Stubs, and Clock', () => { * @param x {any} */ foo (x) { - /* eslint-disable-next-line no-console */ console.log('obj.foo called with', x) }, } @@ -54,7 +53,6 @@ context('Spies, Stubs, and Clock', () => { * @param b {string} */ foo (a, b) { - // eslint-disable-next-line no-console console.log('a', a, 'b', b) }, }