1
- // Source: https://github.com/playwright-community/eslint-plugin-playwright/blob/main /src/index.ts
1
+ // Source: https://github.com/playwright-community/eslint-plugin-playwright/blob/v1.5.1 /src/index.ts#L101-L129
2
2
const recommended = {
3
3
'no-empty-pattern' : 'off' ,
4
4
'playwright/expect-expect' : 'warn' ,
5
5
'playwright/max-nested-describe' : 'warn' ,
6
6
'playwright/missing-playwright-await' : 'error' ,
7
+ 'playwright/no-conditional-expect' : 'warn' ,
7
8
'playwright/no-conditional-in-test' : 'warn' ,
8
9
'playwright/no-element-handle' : 'warn' ,
9
10
'playwright/no-eval' : 'warn' ,
@@ -13,11 +14,17 @@ const recommended = {
13
14
'playwright/no-networkidle' : 'error' ,
14
15
'playwright/no-page-pause' : 'warn' ,
15
16
'playwright/no-skipped-test' : 'warn' ,
17
+ 'playwright/no-standalone-expect' : 'error' ,
18
+ 'playwright/no-unsafe-references' : 'error' ,
16
19
'playwright/no-useless-await' : 'warn' ,
17
20
'playwright/no-useless-not' : 'warn' ,
21
+ 'playwright/no-wait-for-selector' : 'warn' ,
18
22
'playwright/no-wait-for-timeout' : 'warn' ,
19
23
'playwright/prefer-web-first-assertions' : 'error' ,
24
+ 'playwright/valid-describe-callback' : 'error' ,
20
25
'playwright/valid-expect' : 'error' ,
26
+ 'playwright/valid-expect-in-promise' : 'error' ,
27
+ 'playwright/valid-title' : 'error' ,
21
28
} ;
22
29
23
30
module . exports = {
@@ -35,11 +42,5 @@ module.exports = {
35
42
* 🔧 Fixable - https://github.com/playwright-community/eslint-plugin-playwright/blob/main/docs/rules/prefer-lowercase-title.md
36
43
*/
37
44
'playwright/prefer-to-have-length' : 'warn' ,
38
- /**
39
- * Require test cases and hooks to be inside a `test.describe` block.
40
- *
41
- * 🚫 Not fixable - https://github.com/playwright-community/eslint-plugin-playwright/blob/main/docs/rules/prefer-lowercase-title.md
42
- */
43
- 'playwright/require-top-level-describe' : 'error' ,
44
45
} ,
45
46
} ;
0 commit comments