From 3fb8aab9d5a6ba62a59214a124a2686f6f3f7db1 Mon Sep 17 00:00:00 2001 From: c0d33ngr <106184818+c0d33ngr@users.noreply.github.com> Date: Wed, 24 Jan 2024 16:50:37 +0100 Subject: [PATCH] [GH-232]: Fix e2e playwright directory linting (#241) * Fix e2e playwright directory linting * Uncomment playwright ci/lint --- .github/workflows/playwright.yml | 8 ++++---- e2e/playwright/.eslintrc.json | 8 ++++++++ e2e/playwright/package-lock.json | 2 +- e2e/playwright/package.json | 2 +- 4 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 e2e/playwright/.eslintrc.json diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 6e71f0ca..9bc6e7fd 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -170,10 +170,10 @@ jobs: cd e2e/playwright npm run tsc - # - name: ci/lint - # run: | - # cd e2e/playwright - # npm run lint + - name: ci/lint + run: | + cd e2e/playwright + npm run lint - name: ci/run-playwright-tests run: | diff --git a/e2e/playwright/.eslintrc.json b/e2e/playwright/.eslintrc.json new file mode 100644 index 00000000..9fdf2536 --- /dev/null +++ b/e2e/playwright/.eslintrc.json @@ -0,0 +1,8 @@ +{ + "parser": "@typescript-eslint/parser", + "plugins": ["@typescript-eslint"], + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended" + ] +} diff --git a/e2e/playwright/package-lock.json b/e2e/playwright/package-lock.json index 361ed231..3773dc91 100644 --- a/e2e/playwright/package-lock.json +++ b/e2e/playwright/package-lock.json @@ -16,7 +16,7 @@ "@typescript-eslint/parser": "~5.59.0", "cross-env": "7.0.3", "dotenv": "^16.0.3", - "eslint": "7.9.0", + "eslint": "^7.9.0", "eslint-plugin-import": "2.22.0", "eslint-plugin-react": "~7.32.2", "eslint-plugin-react-hooks": "~4.6.0", diff --git a/e2e/playwright/package.json b/e2e/playwright/package.json index 18aac110..2d128409 100644 --- a/e2e/playwright/package.json +++ b/e2e/playwright/package.json @@ -17,7 +17,7 @@ "@typescript-eslint/parser": "~5.59.0", "cross-env": "7.0.3", "dotenv": "^16.0.3", - "eslint": "7.9.0", + "eslint": "^7.9.0", "eslint-plugin-import": "2.22.0", "eslint-plugin-react": "~7.32.2", "eslint-plugin-react-hooks": "~4.6.0",