Created
April 9, 2026 10:30
-
-
Save unickq/a4188313efb3bd92d8dd0de7c852b8b1 to your computer and use it in GitHub Desktop.
Esling for e2e projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // @ts-check | |
| import playwright from "eslint-plugin-playwright"; | |
| import eslint from "@eslint/js"; | |
| import tseslint from "typescript-eslint"; | |
| import { defineConfig } from "eslint/config"; | |
| export default defineConfig( | |
| eslint.configs.recommended, | |
| tseslint.configs.recommended, | |
| { | |
| files: ["src/**"], | |
| extends: [playwright.configs["flat/recommended"]], | |
| rules: { | |
| "playwright/no-conditional-in-test": "off", | |
| "playwright/expect-expect": "off", | |
| "playwright/no-nested-step": "off", | |
| "playwright/no-wait-for-timeout": "error", | |
| "playwright/no-page-pause": "error", | |
| "playwright/no-conditional-expect": "off", | |
| "playwright/no-skipped-test": "warn", | |
| }, | |
| }, | |
| { | |
| files: ["src/**"], | |
| languageOptions: { | |
| parserOptions: { | |
| project: true, | |
| }, | |
| }, | |
| rules: { | |
| "@typescript-eslint/no-unused-vars": ["error", { varsIgnorePattern: "^_", argsIgnorePattern: "^_" }], | |
| "@typescript-eslint/no-floating-promises": "error", | |
| "@typescript-eslint/no-misused-promises": "error", | |
| }, | |
| }, | |
| { ignores: ["playwright-report", "utils"] }, | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment