You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -20,29 +20,29 @@ Config for projects using **Playwright** for testing.
20
20
exportdefaulttseslint.config(...playwright);
21
21
```
22
22
23
-
## 📏 Rules (38)
23
+
## 📏 Rules (40)
24
24
25
25
> 🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).<br>💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[missing-playwright-await](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/missing-playwright-await.md)<br />Identify false positives when async Playwright APIs are not properly awaited. || 🔧 ||
32
-
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[no-focused-test](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-focused-test.md)<br />Prevent usage of `.only()` focus test annotation || 💡 ||
33
32
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[no-networkidle](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-networkidle.md)<br />Prevent usage of the networkidle option ||||
34
-
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[no-standalone-expect](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-standalone-expect.md)<br />Disallow using `expect` outside of `test` blocks || 🔧 ||
35
33
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[no-unsafe-references](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-unsafe-references.md)<br />Prevent unsafe variable references in page.evaluate() || 🔧 ||
36
34
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[prefer-web-first-assertions](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-web-first-assertions.md)<br />Prefer web first assertions || 🔧 ||
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[valid-expect-in-promise](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/valid-expect-in-promise.md)<br />Require promises that have expectations in their chain to be valid ||||
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[expect-expect](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/expect-expect.md)<br />Enforce assertion to be made in a test body ||||
47
47
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[max-nested-describe](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/max-nested-describe.md)<br />Enforces a maximum depth to nested describe calls ||||
48
48
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[no-commented-out-tests](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-commented-out-tests.md)<br />Disallow commented out tests ||||
@@ -51,10 +51,12 @@ Config for projects using **Playwright** for testing.
51
51
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[no-duplicate-hooks](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-duplicate-hooks.md)<br />Disallow duplicate setup and teardown hooks ||||
52
52
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[no-element-handle](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-element-handle.md)<br />The use of ElementHandle is discouraged, use Locator instead || 💡 ||
53
53
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[no-eval](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-eval.md)<br />The use of `page.$eval` and `page.$$eval` are discouraged, use `locator.evaluate` or `locator.evaluateAll` instead ||||
54
+
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[no-focused-test](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-focused-test.md)<br />Prevent usage of `.only()` focus test annotation || 💡 ||
54
55
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[no-force-option](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-force-option.md)<br />Prevent usage of `{ force: true }` option. ||||
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[no-page-pause](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-page-pause.md)<br />Prevent usage of page.pause() ||||
57
58
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[no-skipped-test](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-skipped-test.md)<br />Prevent usage of the `.skip()` skip test annotation. || 💡 ||
59
+
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[no-standalone-expect](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-standalone-expect.md)<br />Disallow using `expect` outside of `test` blocks || 🔧 ||
58
60
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[no-useless-await](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-useless-await.md)<br />Disallow unnecessary awaits for Playwright methods || 🔧 ||
59
61
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[no-useless-not](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-useless-not.md)<br />Disallow usage of 'not' matchers when a more specific matcher exists || 🔧 ||
60
62
|[](https://github.com/playwright-community/eslint-plugin-playwright#readme)|[no-wait-for-selector](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-wait-for-selector.md)<br />Prevent usage of page.waitForSelector() || 💡 ||
0 commit comments