{"id":19805,"library":"eslint-plugin-jest-playwright","title":"eslint-plugin-jest-playwright","description":"ESLint plugin providing Playwright-specific lint rules and globals for jest-playwright test files. Version 0.9.0 was the last release (2022); the project has been superseded by eslint-plugin-playwright (v2.x) which supports both Playwright test runner and jest-playwright. Tracks Playwright best practices like missing awaits, no conditionals in tests, and valid titles. No longer actively maintained; users should migrate to eslint-plugin-playwright for ongoing fixes and ESLint v8/v9/v10 support.","status":"deprecated","version":"0.9.0","language":"javascript","source_language":"en","source_url":"https://github.com/mxschmitt/eslint-plugin-playwright","tags":["javascript"],"install":[{"cmd":"npm install eslint-plugin-jest-playwright","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-jest-playwright","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-jest-playwright","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Plugin ships as CommonJS; both import and require work.","wrong":"const plugin = require('eslint-plugin-jest-playwright')","symbol":"default","correct":"import plugin from 'eslint-plugin-jest-playwright'"},{"note":"rules object is available as a named export.","wrong":"const { rules } = require('eslint-plugin-jest-playwright')","symbol":"rules","correct":"import { rules } from 'eslint-plugin-jest-playwright'"},{"note":"configs is a named export, not default.","wrong":"import configs from 'eslint-plugin-jest-playwright'","symbol":"configs","correct":"import { configs } from 'eslint-plugin-jest-playwright'"}],"quickstart":{"code":"// .eslintrc.js\nmodule.exports = {\n  plugins: ['jest-playwright'],\n  extends: ['plugin:jest-playwright/recommended'],\n  env: {\n    'jest-playwright/globals': true,\n  },\n  rules: {\n    'jest-playwright/expect-expect': 'warn',\n  },\n};\n\n// test.js\nconst { test, expect } = require('@playwright/test');\ntest('homepage title', async ({ page }) => {\n  await page.goto('https://example.com');\n  await expect(page).toHaveTitle(/Example/);\n});","lang":"javascript","description":"Configure ESLint with jest-playwright recommended rules and enable custom globals."},"warnings":[{"fix":"Replace 'eslint-plugin-jest-playwright' with 'eslint-plugin-playwright' in your ESLint config. See https://github.com/playwright-community/eslint-plugin-playwright for migration.","message":"This package is deprecated. Use eslint-plugin-playwright instead.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Migrate to eslint-plugin-playwright which supports flat config in v2.x.","message":"Plugin does not support ESLint v9 flat config.","severity":"breaking","affected_versions":">=0.0.0"},{"fix":"Switch to eslint-plugin-playwright.","message":"No longer receives updates. Bug fixes and new features are only in eslint-plugin-playwright.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"npm install eslint-plugin-jest-playwright --save-dev","cause":"Package not installed.","error":"Error: Failed to load plugin 'jest-playwright' declared in '.eslintrc': Cannot find module 'eslint-plugin-jest-playwright'"},{"fix":"Remove eslint-plugin-jest-playwright and use only eslint-plugin-playwright.","cause":"Both eslint-plugin-jest-playwright and eslint-plugin-playwright are installed and provide overlapping rules.","error":"ESLint couldn't determine the plugin 'jest-playwright' uniquely"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}