From d154bd61733ebd6891902ed723daeaf0b761e105 Mon Sep 17 00:00:00 2001 From: neotrow <92933708+neotrow@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:08:25 -0300 Subject: [PATCH] Cypress Eslint --- cypress/.eslintrc.cjs | 4 +++- cypress/package.json | 3 ++- cypress/yarn.lock | 5 +++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/cypress/.eslintrc.cjs b/cypress/.eslintrc.cjs index 6b35521..3996f7a 100644 --- a/cypress/.eslintrc.cjs +++ b/cypress/.eslintrc.cjs @@ -19,7 +19,7 @@ module.exports = { ecmaVersion: 2018, sourceType: "module", }, - plugins: ["@typescript-eslint", "import"], + plugins: ["@typescript-eslint", "import", "no-only-tests"], settings: { "import/parsers": { "@typescript-eslint/parser": [".ts", ".tsx"], @@ -71,5 +71,7 @@ module.exports = { // cypress "@typescript-eslint/no-namespace": "off", + + "no-only-tests/no-only-tests": ["error", { fix: true }], }, }; diff --git a/cypress/package.json b/cypress/package.json index 9a54178..adf2ff1 100644 --- a/cypress/package.json +++ b/cypress/package.json @@ -31,6 +31,7 @@ }, "devDependencies": { "@faker-js/faker": "^7.6.0", - "cypress": "^11.0.0" + "cypress": "^11.0.0", + "eslint-plugin-no-only-tests": "^3.1.0" } } diff --git a/cypress/yarn.lock b/cypress/yarn.lock index b0a8952..d13b444 100644 --- a/cypress/yarn.lock +++ b/cypress/yarn.lock @@ -994,6 +994,11 @@ eslint-plugin-jsx-a11y@^6.5.1: minimatch "^3.1.2" semver "^6.3.0" +eslint-plugin-no-only-tests@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-3.1.0.tgz#f38e4935c6c6c4842bf158b64aaa20c366fe171b" + integrity sha512-Lf4YW/bL6Un1R6A76pRZyE1dl1vr31G/ev8UzIc/geCgFWyrKil8hVjYqWVKGB/UIGmb6Slzs9T0wNezdSVegw== + eslint-plugin-react-hooks@^4.5.0: version "4.6.0" resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz#4c3e697ad95b77e93f8646aaa1630c1ba607edd3"