eslint-plugin-playwright 0.14.0 → 0.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/rules/no-networkidle.js +1 -1
- package/package.json +20 -18
|
@@ -23,7 +23,7 @@ exports.default = {
|
|
|
23
23
|
// waitForLoadState has a single string argument
|
|
24
24
|
if (methodName === 'waitForLoadState') {
|
|
25
25
|
const arg = node.arguments[0];
|
|
26
|
-
if ((0, ast_1.isStringLiteral)(arg, 'networkidle')) {
|
|
26
|
+
if (arg && (0, ast_1.isStringLiteral)(arg, 'networkidle')) {
|
|
27
27
|
context.report({ messageId, node: arg });
|
|
28
28
|
}
|
|
29
29
|
return;
|
package/package.json
CHANGED
|
@@ -1,47 +1,49 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-playwright",
|
|
3
3
|
"description": "ESLint plugin for Playwright testing.",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.3",
|
|
5
|
+
"packageManager": "pnpm@8.4.0",
|
|
5
6
|
"main": "lib/index.js",
|
|
6
7
|
"repository": "https://github.com/playwright-community/eslint-plugin-playwright",
|
|
7
|
-
"author": "
|
|
8
|
+
"author": "Mark Skelton <mark@mskelton.dev>",
|
|
8
9
|
"contributors": [
|
|
9
|
-
"
|
|
10
|
+
"Max Schmitt <max@schmitt.mx>"
|
|
10
11
|
],
|
|
11
12
|
"license": "MIT",
|
|
12
13
|
"files": [
|
|
13
14
|
"lib",
|
|
14
15
|
"!lib/**/*.spec.js"
|
|
15
16
|
],
|
|
16
|
-
"scripts": {
|
|
17
|
-
"build": "tsc --project tsconfig.build.json",
|
|
18
|
-
"lint": "eslint .",
|
|
19
|
-
"format": "prettier --write .",
|
|
20
|
-
"test": "jest",
|
|
21
|
-
"ts": "tsc"
|
|
22
|
-
},
|
|
23
17
|
"devDependencies": {
|
|
24
18
|
"@mskelton/eslint-config": "^8.0.0",
|
|
25
19
|
"@types/dedent": "^0.7.0",
|
|
26
|
-
"@types/eslint": "^8.
|
|
27
|
-
"@types/estree": "^1.0.
|
|
20
|
+
"@types/eslint": "^8.40.2",
|
|
21
|
+
"@types/estree": "^1.0.1",
|
|
28
22
|
"@typescript-eslint/eslint-plugin": "^5.59.11",
|
|
29
23
|
"@typescript-eslint/parser": "^5.59.11",
|
|
30
24
|
"dedent": "^0.7.0",
|
|
31
25
|
"eslint": "^8.43.0",
|
|
32
26
|
"eslint-plugin-sort": "^2.10.0",
|
|
33
|
-
"jest": "^
|
|
34
|
-
"prettier": "^2.
|
|
35
|
-
"ts-jest": "^
|
|
36
|
-
"typescript": "^
|
|
27
|
+
"jest": "^29.5.0",
|
|
28
|
+
"prettier": "^2.8.8",
|
|
29
|
+
"ts-jest": "^29.1.0",
|
|
30
|
+
"typescript": "^5.1.3"
|
|
37
31
|
},
|
|
38
32
|
"peerDependencies": {
|
|
39
33
|
"eslint": ">=7",
|
|
40
|
-
"eslint-plugin-jest": ">=
|
|
34
|
+
"eslint-plugin-jest": ">=25"
|
|
41
35
|
},
|
|
42
36
|
"peerDependenciesMeta": {
|
|
43
37
|
"eslint-plugin-jest": {
|
|
44
38
|
"optional": true
|
|
45
39
|
}
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "tsc --project tsconfig.build.json",
|
|
43
|
+
"lint": "eslint .",
|
|
44
|
+
"format": "prettier --write .",
|
|
45
|
+
"format:check": "prettier --check .",
|
|
46
|
+
"test": "jest",
|
|
47
|
+
"ts": "tsc"
|
|
46
48
|
}
|
|
47
|
-
}
|
|
49
|
+
}
|