Skip to content

Commit 581d09b

Browse files
committed
update eslint-plugin-playwright
1 parent b907ad2 commit 581d09b

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

tests/eslint/eslint.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2043,6 +2043,8 @@ const qunit = {
20432043
const playwright = {
20442044
// enforce Playwright APIs to be awaited
20452045
'playwright/missing-playwright-await': ERROR,
2046+
// disallow multiple `test.slow()` calls in the same test
2047+
'playwright/no-duplicate-slow': ERROR,
20462048
// disallow usage of `page.$eval()` and `page.$$eval()`
20472049
'playwright/no-eval': ERROR,
20482050
// disallow using `page.pause()`
@@ -2051,6 +2053,8 @@ const playwright = {
20512053
'playwright/no-unsafe-references': ERROR,
20522054
// disallow unnecessary awaits for Playwright methods
20532055
'playwright/no-useless-await': ERROR,
2056+
// require a timeout option for `toPass()`
2057+
'playwright/require-to-pass-timeout': ERROR,
20542058
};
20552059

20562060
const yaml = {

tests/eslint/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/eslint/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"eslint-plugin-name": "^0.0.1",
1919
"eslint-plugin-node-dependencies": "^1.3.0",
2020
"eslint-plugin-package-json": "^0.88.3",
21-
"eslint-plugin-playwright": "^2.6.1",
21+
"eslint-plugin-playwright": "^2.7.0",
2222
"eslint-plugin-promise": "^7.2.1",
2323
"eslint-plugin-qunit": "^8.2.6",
2424
"eslint-plugin-redos": "^4.5.0",

0 commit comments

Comments
 (0)