eslint-plugin-playwright 1.1.2 → 1.3.0
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/README.md +53 -42
- package/dist/index.d.mts +39 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +752 -18
- package/dist/index.mjs +846 -22
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -109,45 +109,56 @@ can configure this plugin to be aware of these additional names.
|
|
|
109
109
|
}
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
-
##
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
[suggestions](https://eslint.org/docs/latest/developer-guide/working-with-rules#providing-suggestions)
|
|
119
|
-
|
|
120
|
-
|
|
|
121
|
-
|
|
|
122
|
-
|
|
|
123
|
-
|
|
|
124
|
-
|
|
|
125
|
-
|
|
|
126
|
-
|
|
|
127
|
-
|
|
|
128
|
-
|
|
|
129
|
-
|
|
|
130
|
-
|
|
|
131
|
-
|
|
|
132
|
-
|
|
|
133
|
-
|
|
|
134
|
-
|
|
|
135
|
-
|
|
|
136
|
-
|
|
|
137
|
-
|
|
|
138
|
-
|
|
|
139
|
-
|
|
|
140
|
-
|
|
|
141
|
-
|
|
|
142
|
-
|
|
|
143
|
-
|
|
|
144
|
-
|
|
|
145
|
-
|
|
|
146
|
-
|
|
|
147
|
-
|
|
|
148
|
-
|
|
|
149
|
-
|
|
|
150
|
-
|
|
|
151
|
-
|
|
|
152
|
-
|
|
|
153
|
-
|
|
|
112
|
+
## Rules
|
|
113
|
+
|
|
114
|
+
✅ Set in the `recommended` configuration\
|
|
115
|
+
🔧 Automatically fixable by the [`--fix`](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix)
|
|
116
|
+
CLI option\
|
|
117
|
+
💡 Manually fixable by
|
|
118
|
+
[editor suggestions](https://eslint.org/docs/latest/developer-guide/working-with-rules#providing-suggestions)
|
|
119
|
+
|
|
120
|
+
| Rule | Description | ✅ | 🔧 | 💡 |
|
|
121
|
+
| --------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- | :-: | :-: | :-: |
|
|
122
|
+
| [expect-expect](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/expect-expect.md) | Enforce assertion to be made in a test body | ✅ | | |
|
|
123
|
+
| [max-expects](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/max-expects.md) | Enforces a maximum number assertion calls in a test body | ✅ | | |
|
|
124
|
+
| [max-nested-describe](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/max-nested-describe.md) | Enforces a maximum depth to nested describe calls | ✅ | | |
|
|
125
|
+
| [missing-playwright-await](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/missing-playwright-await.md) | Enforce Playwright APIs to be awaited | ✅ | 🔧 | |
|
|
126
|
+
| [no-commented-out-test](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-commented-out-test.md) | Disallow commented out tests | | | |
|
|
127
|
+
| [no-conditional-expect](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-conditional-expect.md) | Disallow calling `expect` conditionally | ✅ | | |
|
|
128
|
+
| [no-conditional-in-test](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-conditional-in-test.md) | Disallow conditional logic in tests | ✅ | | |
|
|
129
|
+
| [no-duplicate-hooks](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-duplicate-hooks.md) | Disallow duplicate setup and teardown hooks | | | |
|
|
130
|
+
| [no-element-handle](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-element-handle.md) | Disallow usage of element handles | ✅ | | 💡 |
|
|
131
|
+
| [no-eval](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-eval.md) | Disallow usage of `page.$eval()` and `page.$$eval()` | ✅ | | |
|
|
132
|
+
| [no-focused-test](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-focused-test.md) | Disallow usage of `.only` annotation | ✅ | | 💡 |
|
|
133
|
+
| [no-force-option](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-force-option.md) | Disallow usage of the `{ force: true }` option | ✅ | | |
|
|
134
|
+
| [no-hooks](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-hooks.md) | Disallow setup and teardown hooks | | | |
|
|
135
|
+
| [no-nested-step](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-nested-step.md) | Disallow nested `test.step()` methods | ✅ | | |
|
|
136
|
+
| [no-networkidle](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-networkidle.md) | Disallow usage of the `networkidle` option | ✅ | | |
|
|
137
|
+
| [no-nth-methods](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-nth-methods.md) | Disallow usage of `first()`, `last()`, and `nth()` methods | | | |
|
|
138
|
+
| [no-page-pause](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-page-pause.md) | Disallow using `page.pause()` | ✅ | | |
|
|
139
|
+
| [no-unsafe-references](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-unsafe-references.md) | Prevent unsafe variable references in `page.evaluate()` | ✅ | 🔧 | |
|
|
140
|
+
| [no-get-by-title](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-get-by-title.md) | Disallow using `getByTitle()` | | 🔧 | |
|
|
141
|
+
| [no-raw-locators](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-raw-locators.md) | Disallow using raw locators | | | |
|
|
142
|
+
| [no-useless-await](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-useless-await.md) | Disallow unnecessary `await`s for Playwright methods | ✅ | 🔧 | |
|
|
143
|
+
| [no-restricted-matchers](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-restricted-matchers.md) | Disallow specific matchers & modifiers | | | |
|
|
144
|
+
| [no-skipped-test](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-skipped-test.md) | Disallow usage of the `.skip` annotation | ✅ | | 💡 |
|
|
145
|
+
| [no-standalone-expect](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-standalone-expect.md) | Disallow using expect outside of `test` blocks | ✅ | | |
|
|
146
|
+
| [no-useless-not](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-useless-not.md) | Disallow usage of `not` matchers when a specific matcher exists | ✅ | 🔧 | |
|
|
147
|
+
| [no-wait-for-selector](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-wait-for-selector.md) | Disallow usage of `page.waitForSelector()` | ✅ | | 💡 |
|
|
148
|
+
| [no-wait-for-timeout](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-wait-for-timeout.md) | Disallow usage of `page.waitForTimeout()` | ✅ | | 💡 |
|
|
149
|
+
| [prefer-comparison-matcher](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-comparison-matcher.md) | Suggest using the built-in comparison matchers | | 🔧 | |
|
|
150
|
+
| [prefer-equality-matcher](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-equality-matcher.md) | Suggest using the built-in equality matchers | | | 💡 |
|
|
151
|
+
| [prefer-hooks-in-order](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-hooks-in-order.md) | Prefer having hooks in a consistent order | | | |
|
|
152
|
+
| [prefer-hooks-on-top](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-hooks-on-top.md) | Suggest having hooks before any test cases | | | |
|
|
153
|
+
| [prefer-strict-equal](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-strict-equal.md) | Suggest using `toStrictEqual()` | | | 💡 |
|
|
154
|
+
| [prefer-lowercase-title](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-lowercase-title.md) | Enforce lowercase test names | | 🔧 | |
|
|
155
|
+
| [prefer-to-be](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-to-be.md) | Suggest using `toBe()` | | 🔧 | |
|
|
156
|
+
| [prefer-to-contain](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-to-contain.md) | Suggest using `toContain()` | | 🔧 | |
|
|
157
|
+
| [prefer-to-have-count](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-to-have-count.md) | Suggest using `toHaveCount()` | | 🔧 | |
|
|
158
|
+
| [prefer-to-have-length](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-to-have-length.md) | Suggest using `toHaveLength()` | | 🔧 | |
|
|
159
|
+
| [prefer-web-first-assertions](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-web-first-assertions.md) | Suggest using web first assertions | ✅ | 🔧 | |
|
|
160
|
+
| [require-hook](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/require-hook.md) | Require setup and teardown code to be within a hook | | | |
|
|
161
|
+
| [require-top-level-describe](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/require-top-level-describe.md) | Require test cases and hooks to be inside a `test.describe` block | | | |
|
|
162
|
+
| [require-soft-assertions](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/require-soft-assertions.md) | Require assertions to use `expect.soft()` | | 🔧 | |
|
|
163
|
+
| [valid-expect](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/valid-expect.md) | Enforce valid `expect()` usage | ✅ | | |
|
|
164
|
+
| [valid-title](https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/valid-title.md) | Enforce valid titles | ✅ | 🔧 | |
|
package/dist/index.d.mts
CHANGED
|
@@ -11,14 +11,19 @@ declare const _default: {
|
|
|
11
11
|
configs: {};
|
|
12
12
|
rules: {
|
|
13
13
|
'expect-expect': eslint.Rule.RuleModule;
|
|
14
|
+
'max-expects': eslint.Rule.RuleModule;
|
|
14
15
|
'max-nested-describe': eslint.Rule.RuleModule;
|
|
15
16
|
'missing-playwright-await': eslint.Rule.RuleModule;
|
|
17
|
+
'no-commented-out-tests': eslint.Rule.RuleModule;
|
|
18
|
+
'no-conditional-expect': eslint.Rule.RuleModule;
|
|
16
19
|
'no-conditional-in-test': eslint.Rule.RuleModule;
|
|
20
|
+
'no-duplicate-hooks': eslint.Rule.RuleModule;
|
|
17
21
|
'no-element-handle': eslint.Rule.RuleModule;
|
|
18
22
|
'no-eval': eslint.Rule.RuleModule;
|
|
19
23
|
'no-focused-test': eslint.Rule.RuleModule;
|
|
20
24
|
'no-force-option': eslint.Rule.RuleModule;
|
|
21
25
|
'no-get-by-title': eslint.Rule.RuleModule;
|
|
26
|
+
'no-hooks': eslint.Rule.RuleModule;
|
|
22
27
|
'no-nested-step': eslint.Rule.RuleModule;
|
|
23
28
|
'no-networkidle': eslint.Rule.RuleModule;
|
|
24
29
|
'no-nth-methods': eslint.Rule.RuleModule;
|
|
@@ -26,11 +31,16 @@ declare const _default: {
|
|
|
26
31
|
'no-raw-locators': eslint.Rule.RuleModule;
|
|
27
32
|
'no-restricted-matchers': eslint.Rule.RuleModule;
|
|
28
33
|
'no-skipped-test': eslint.Rule.RuleModule;
|
|
34
|
+
'no-standalone-expect': eslint.Rule.RuleModule;
|
|
29
35
|
'no-unsafe-references': eslint.Rule.RuleModule;
|
|
30
36
|
'no-useless-await': eslint.Rule.RuleModule;
|
|
31
37
|
'no-useless-not': eslint.Rule.RuleModule;
|
|
32
38
|
'no-wait-for-selector': eslint.Rule.RuleModule;
|
|
33
39
|
'no-wait-for-timeout': eslint.Rule.RuleModule;
|
|
40
|
+
'prefer-comparison-matcher': eslint.Rule.RuleModule;
|
|
41
|
+
'prefer-equality-matcher': eslint.Rule.RuleModule;
|
|
42
|
+
'prefer-hooks-in-order': eslint.Rule.RuleModule;
|
|
43
|
+
'prefer-hooks-on-top': eslint.Rule.RuleModule;
|
|
34
44
|
'prefer-lowercase-title': eslint.Rule.RuleModule;
|
|
35
45
|
'prefer-strict-equal': eslint.Rule.RuleModule;
|
|
36
46
|
'prefer-to-be': eslint.Rule.RuleModule;
|
|
@@ -38,6 +48,7 @@ declare const _default: {
|
|
|
38
48
|
'prefer-to-have-count': eslint.Rule.RuleModule;
|
|
39
49
|
'prefer-to-have-length': eslint.Rule.RuleModule;
|
|
40
50
|
'prefer-web-first-assertions': eslint.Rule.RuleModule;
|
|
51
|
+
'require-hook': eslint.Rule.RuleModule;
|
|
41
52
|
'require-soft-assertions': eslint.Rule.RuleModule;
|
|
42
53
|
'require-top-level-describe': eslint.Rule.RuleModule;
|
|
43
54
|
'valid-expect': eslint.Rule.RuleModule;
|
|
@@ -62,14 +73,19 @@ declare const _default: {
|
|
|
62
73
|
configs: {};
|
|
63
74
|
rules: {
|
|
64
75
|
'expect-expect': eslint.Rule.RuleModule;
|
|
76
|
+
'max-expects': eslint.Rule.RuleModule;
|
|
65
77
|
'max-nested-describe': eslint.Rule.RuleModule;
|
|
66
78
|
'missing-playwright-await': eslint.Rule.RuleModule;
|
|
79
|
+
'no-commented-out-tests': eslint.Rule.RuleModule;
|
|
80
|
+
'no-conditional-expect': eslint.Rule.RuleModule;
|
|
67
81
|
'no-conditional-in-test': eslint.Rule.RuleModule;
|
|
82
|
+
'no-duplicate-hooks': eslint.Rule.RuleModule;
|
|
68
83
|
'no-element-handle': eslint.Rule.RuleModule;
|
|
69
84
|
'no-eval': eslint.Rule.RuleModule;
|
|
70
85
|
'no-focused-test': eslint.Rule.RuleModule;
|
|
71
86
|
'no-force-option': eslint.Rule.RuleModule;
|
|
72
87
|
'no-get-by-title': eslint.Rule.RuleModule;
|
|
88
|
+
'no-hooks': eslint.Rule.RuleModule;
|
|
73
89
|
'no-nested-step': eslint.Rule.RuleModule;
|
|
74
90
|
'no-networkidle': eslint.Rule.RuleModule;
|
|
75
91
|
'no-nth-methods': eslint.Rule.RuleModule;
|
|
@@ -77,11 +93,16 @@ declare const _default: {
|
|
|
77
93
|
'no-raw-locators': eslint.Rule.RuleModule;
|
|
78
94
|
'no-restricted-matchers': eslint.Rule.RuleModule;
|
|
79
95
|
'no-skipped-test': eslint.Rule.RuleModule;
|
|
96
|
+
'no-standalone-expect': eslint.Rule.RuleModule;
|
|
80
97
|
'no-unsafe-references': eslint.Rule.RuleModule;
|
|
81
98
|
'no-useless-await': eslint.Rule.RuleModule;
|
|
82
99
|
'no-useless-not': eslint.Rule.RuleModule;
|
|
83
100
|
'no-wait-for-selector': eslint.Rule.RuleModule;
|
|
84
101
|
'no-wait-for-timeout': eslint.Rule.RuleModule;
|
|
102
|
+
'prefer-comparison-matcher': eslint.Rule.RuleModule;
|
|
103
|
+
'prefer-equality-matcher': eslint.Rule.RuleModule;
|
|
104
|
+
'prefer-hooks-in-order': eslint.Rule.RuleModule;
|
|
105
|
+
'prefer-hooks-on-top': eslint.Rule.RuleModule;
|
|
85
106
|
'prefer-lowercase-title': eslint.Rule.RuleModule;
|
|
86
107
|
'prefer-strict-equal': eslint.Rule.RuleModule;
|
|
87
108
|
'prefer-to-be': eslint.Rule.RuleModule;
|
|
@@ -89,6 +110,7 @@ declare const _default: {
|
|
|
89
110
|
'prefer-to-have-count': eslint.Rule.RuleModule;
|
|
90
111
|
'prefer-to-have-length': eslint.Rule.RuleModule;
|
|
91
112
|
'prefer-web-first-assertions': eslint.Rule.RuleModule;
|
|
113
|
+
'require-hook': eslint.Rule.RuleModule;
|
|
92
114
|
'require-soft-assertions': eslint.Rule.RuleModule;
|
|
93
115
|
'require-top-level-describe': eslint.Rule.RuleModule;
|
|
94
116
|
'valid-expect': eslint.Rule.RuleModule;
|
|
@@ -101,6 +123,7 @@ declare const _default: {
|
|
|
101
123
|
'playwright/expect-expect': string;
|
|
102
124
|
'playwright/max-nested-describe': string;
|
|
103
125
|
'playwright/missing-playwright-await': string;
|
|
126
|
+
'playwright/no-conditional-expect': string;
|
|
104
127
|
'playwright/no-conditional-in-test': string;
|
|
105
128
|
'playwright/no-element-handle': string;
|
|
106
129
|
'playwright/no-eval': string;
|
|
@@ -110,6 +133,7 @@ declare const _default: {
|
|
|
110
133
|
'playwright/no-networkidle': string;
|
|
111
134
|
'playwright/no-page-pause': string;
|
|
112
135
|
'playwright/no-skipped-test': string;
|
|
136
|
+
'playwright/no-standalone-expect': string;
|
|
113
137
|
'playwright/no-unsafe-references': string;
|
|
114
138
|
'playwright/no-useless-await': string;
|
|
115
139
|
'playwright/no-useless-not': string;
|
|
@@ -152,6 +176,7 @@ declare const _default: {
|
|
|
152
176
|
'playwright/expect-expect': string;
|
|
153
177
|
'playwright/max-nested-describe': string;
|
|
154
178
|
'playwright/missing-playwright-await': string;
|
|
179
|
+
'playwright/no-conditional-expect': string;
|
|
155
180
|
'playwright/no-conditional-in-test': string;
|
|
156
181
|
'playwright/no-element-handle': string;
|
|
157
182
|
'playwright/no-eval': string;
|
|
@@ -161,6 +186,7 @@ declare const _default: {
|
|
|
161
186
|
'playwright/no-networkidle': string;
|
|
162
187
|
'playwright/no-page-pause': string;
|
|
163
188
|
'playwright/no-skipped-test': string;
|
|
189
|
+
'playwright/no-standalone-expect': string;
|
|
164
190
|
'playwright/no-unsafe-references': string;
|
|
165
191
|
'playwright/no-useless-await': string;
|
|
166
192
|
'playwright/no-useless-not': string;
|
|
@@ -181,6 +207,7 @@ declare const _default: {
|
|
|
181
207
|
'playwright/expect-expect': string;
|
|
182
208
|
'playwright/max-nested-describe': string;
|
|
183
209
|
'playwright/missing-playwright-await': string;
|
|
210
|
+
'playwright/no-conditional-expect': string;
|
|
184
211
|
'playwright/no-conditional-in-test': string;
|
|
185
212
|
'playwright/no-element-handle': string;
|
|
186
213
|
'playwright/no-eval': string;
|
|
@@ -190,6 +217,7 @@ declare const _default: {
|
|
|
190
217
|
'playwright/no-networkidle': string;
|
|
191
218
|
'playwright/no-page-pause': string;
|
|
192
219
|
'playwright/no-skipped-test': string;
|
|
220
|
+
'playwright/no-standalone-expect': string;
|
|
193
221
|
'playwright/no-unsafe-references': string;
|
|
194
222
|
'playwright/no-useless-await': string;
|
|
195
223
|
'playwright/no-useless-not': string;
|
|
@@ -203,14 +231,19 @@ declare const _default: {
|
|
|
203
231
|
};
|
|
204
232
|
rules: {
|
|
205
233
|
'expect-expect': eslint.Rule.RuleModule;
|
|
234
|
+
'max-expects': eslint.Rule.RuleModule;
|
|
206
235
|
'max-nested-describe': eslint.Rule.RuleModule;
|
|
207
236
|
'missing-playwright-await': eslint.Rule.RuleModule;
|
|
237
|
+
'no-commented-out-tests': eslint.Rule.RuleModule;
|
|
238
|
+
'no-conditional-expect': eslint.Rule.RuleModule;
|
|
208
239
|
'no-conditional-in-test': eslint.Rule.RuleModule;
|
|
240
|
+
'no-duplicate-hooks': eslint.Rule.RuleModule;
|
|
209
241
|
'no-element-handle': eslint.Rule.RuleModule;
|
|
210
242
|
'no-eval': eslint.Rule.RuleModule;
|
|
211
243
|
'no-focused-test': eslint.Rule.RuleModule;
|
|
212
244
|
'no-force-option': eslint.Rule.RuleModule;
|
|
213
245
|
'no-get-by-title': eslint.Rule.RuleModule;
|
|
246
|
+
'no-hooks': eslint.Rule.RuleModule;
|
|
214
247
|
'no-nested-step': eslint.Rule.RuleModule;
|
|
215
248
|
'no-networkidle': eslint.Rule.RuleModule;
|
|
216
249
|
'no-nth-methods': eslint.Rule.RuleModule;
|
|
@@ -218,11 +251,16 @@ declare const _default: {
|
|
|
218
251
|
'no-raw-locators': eslint.Rule.RuleModule;
|
|
219
252
|
'no-restricted-matchers': eslint.Rule.RuleModule;
|
|
220
253
|
'no-skipped-test': eslint.Rule.RuleModule;
|
|
254
|
+
'no-standalone-expect': eslint.Rule.RuleModule;
|
|
221
255
|
'no-unsafe-references': eslint.Rule.RuleModule;
|
|
222
256
|
'no-useless-await': eslint.Rule.RuleModule;
|
|
223
257
|
'no-useless-not': eslint.Rule.RuleModule;
|
|
224
258
|
'no-wait-for-selector': eslint.Rule.RuleModule;
|
|
225
259
|
'no-wait-for-timeout': eslint.Rule.RuleModule;
|
|
260
|
+
'prefer-comparison-matcher': eslint.Rule.RuleModule;
|
|
261
|
+
'prefer-equality-matcher': eslint.Rule.RuleModule;
|
|
262
|
+
'prefer-hooks-in-order': eslint.Rule.RuleModule;
|
|
263
|
+
'prefer-hooks-on-top': eslint.Rule.RuleModule;
|
|
226
264
|
'prefer-lowercase-title': eslint.Rule.RuleModule;
|
|
227
265
|
'prefer-strict-equal': eslint.Rule.RuleModule;
|
|
228
266
|
'prefer-to-be': eslint.Rule.RuleModule;
|
|
@@ -230,6 +268,7 @@ declare const _default: {
|
|
|
230
268
|
'prefer-to-have-count': eslint.Rule.RuleModule;
|
|
231
269
|
'prefer-to-have-length': eslint.Rule.RuleModule;
|
|
232
270
|
'prefer-web-first-assertions': eslint.Rule.RuleModule;
|
|
271
|
+
'require-hook': eslint.Rule.RuleModule;
|
|
233
272
|
'require-soft-assertions': eslint.Rule.RuleModule;
|
|
234
273
|
'require-top-level-describe': eslint.Rule.RuleModule;
|
|
235
274
|
'valid-expect': eslint.Rule.RuleModule;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,14 +11,19 @@ declare const _default: {
|
|
|
11
11
|
configs: {};
|
|
12
12
|
rules: {
|
|
13
13
|
'expect-expect': eslint.Rule.RuleModule;
|
|
14
|
+
'max-expects': eslint.Rule.RuleModule;
|
|
14
15
|
'max-nested-describe': eslint.Rule.RuleModule;
|
|
15
16
|
'missing-playwright-await': eslint.Rule.RuleModule;
|
|
17
|
+
'no-commented-out-tests': eslint.Rule.RuleModule;
|
|
18
|
+
'no-conditional-expect': eslint.Rule.RuleModule;
|
|
16
19
|
'no-conditional-in-test': eslint.Rule.RuleModule;
|
|
20
|
+
'no-duplicate-hooks': eslint.Rule.RuleModule;
|
|
17
21
|
'no-element-handle': eslint.Rule.RuleModule;
|
|
18
22
|
'no-eval': eslint.Rule.RuleModule;
|
|
19
23
|
'no-focused-test': eslint.Rule.RuleModule;
|
|
20
24
|
'no-force-option': eslint.Rule.RuleModule;
|
|
21
25
|
'no-get-by-title': eslint.Rule.RuleModule;
|
|
26
|
+
'no-hooks': eslint.Rule.RuleModule;
|
|
22
27
|
'no-nested-step': eslint.Rule.RuleModule;
|
|
23
28
|
'no-networkidle': eslint.Rule.RuleModule;
|
|
24
29
|
'no-nth-methods': eslint.Rule.RuleModule;
|
|
@@ -26,11 +31,16 @@ declare const _default: {
|
|
|
26
31
|
'no-raw-locators': eslint.Rule.RuleModule;
|
|
27
32
|
'no-restricted-matchers': eslint.Rule.RuleModule;
|
|
28
33
|
'no-skipped-test': eslint.Rule.RuleModule;
|
|
34
|
+
'no-standalone-expect': eslint.Rule.RuleModule;
|
|
29
35
|
'no-unsafe-references': eslint.Rule.RuleModule;
|
|
30
36
|
'no-useless-await': eslint.Rule.RuleModule;
|
|
31
37
|
'no-useless-not': eslint.Rule.RuleModule;
|
|
32
38
|
'no-wait-for-selector': eslint.Rule.RuleModule;
|
|
33
39
|
'no-wait-for-timeout': eslint.Rule.RuleModule;
|
|
40
|
+
'prefer-comparison-matcher': eslint.Rule.RuleModule;
|
|
41
|
+
'prefer-equality-matcher': eslint.Rule.RuleModule;
|
|
42
|
+
'prefer-hooks-in-order': eslint.Rule.RuleModule;
|
|
43
|
+
'prefer-hooks-on-top': eslint.Rule.RuleModule;
|
|
34
44
|
'prefer-lowercase-title': eslint.Rule.RuleModule;
|
|
35
45
|
'prefer-strict-equal': eslint.Rule.RuleModule;
|
|
36
46
|
'prefer-to-be': eslint.Rule.RuleModule;
|
|
@@ -38,6 +48,7 @@ declare const _default: {
|
|
|
38
48
|
'prefer-to-have-count': eslint.Rule.RuleModule;
|
|
39
49
|
'prefer-to-have-length': eslint.Rule.RuleModule;
|
|
40
50
|
'prefer-web-first-assertions': eslint.Rule.RuleModule;
|
|
51
|
+
'require-hook': eslint.Rule.RuleModule;
|
|
41
52
|
'require-soft-assertions': eslint.Rule.RuleModule;
|
|
42
53
|
'require-top-level-describe': eslint.Rule.RuleModule;
|
|
43
54
|
'valid-expect': eslint.Rule.RuleModule;
|
|
@@ -62,14 +73,19 @@ declare const _default: {
|
|
|
62
73
|
configs: {};
|
|
63
74
|
rules: {
|
|
64
75
|
'expect-expect': eslint.Rule.RuleModule;
|
|
76
|
+
'max-expects': eslint.Rule.RuleModule;
|
|
65
77
|
'max-nested-describe': eslint.Rule.RuleModule;
|
|
66
78
|
'missing-playwright-await': eslint.Rule.RuleModule;
|
|
79
|
+
'no-commented-out-tests': eslint.Rule.RuleModule;
|
|
80
|
+
'no-conditional-expect': eslint.Rule.RuleModule;
|
|
67
81
|
'no-conditional-in-test': eslint.Rule.RuleModule;
|
|
82
|
+
'no-duplicate-hooks': eslint.Rule.RuleModule;
|
|
68
83
|
'no-element-handle': eslint.Rule.RuleModule;
|
|
69
84
|
'no-eval': eslint.Rule.RuleModule;
|
|
70
85
|
'no-focused-test': eslint.Rule.RuleModule;
|
|
71
86
|
'no-force-option': eslint.Rule.RuleModule;
|
|
72
87
|
'no-get-by-title': eslint.Rule.RuleModule;
|
|
88
|
+
'no-hooks': eslint.Rule.RuleModule;
|
|
73
89
|
'no-nested-step': eslint.Rule.RuleModule;
|
|
74
90
|
'no-networkidle': eslint.Rule.RuleModule;
|
|
75
91
|
'no-nth-methods': eslint.Rule.RuleModule;
|
|
@@ -77,11 +93,16 @@ declare const _default: {
|
|
|
77
93
|
'no-raw-locators': eslint.Rule.RuleModule;
|
|
78
94
|
'no-restricted-matchers': eslint.Rule.RuleModule;
|
|
79
95
|
'no-skipped-test': eslint.Rule.RuleModule;
|
|
96
|
+
'no-standalone-expect': eslint.Rule.RuleModule;
|
|
80
97
|
'no-unsafe-references': eslint.Rule.RuleModule;
|
|
81
98
|
'no-useless-await': eslint.Rule.RuleModule;
|
|
82
99
|
'no-useless-not': eslint.Rule.RuleModule;
|
|
83
100
|
'no-wait-for-selector': eslint.Rule.RuleModule;
|
|
84
101
|
'no-wait-for-timeout': eslint.Rule.RuleModule;
|
|
102
|
+
'prefer-comparison-matcher': eslint.Rule.RuleModule;
|
|
103
|
+
'prefer-equality-matcher': eslint.Rule.RuleModule;
|
|
104
|
+
'prefer-hooks-in-order': eslint.Rule.RuleModule;
|
|
105
|
+
'prefer-hooks-on-top': eslint.Rule.RuleModule;
|
|
85
106
|
'prefer-lowercase-title': eslint.Rule.RuleModule;
|
|
86
107
|
'prefer-strict-equal': eslint.Rule.RuleModule;
|
|
87
108
|
'prefer-to-be': eslint.Rule.RuleModule;
|
|
@@ -89,6 +110,7 @@ declare const _default: {
|
|
|
89
110
|
'prefer-to-have-count': eslint.Rule.RuleModule;
|
|
90
111
|
'prefer-to-have-length': eslint.Rule.RuleModule;
|
|
91
112
|
'prefer-web-first-assertions': eslint.Rule.RuleModule;
|
|
113
|
+
'require-hook': eslint.Rule.RuleModule;
|
|
92
114
|
'require-soft-assertions': eslint.Rule.RuleModule;
|
|
93
115
|
'require-top-level-describe': eslint.Rule.RuleModule;
|
|
94
116
|
'valid-expect': eslint.Rule.RuleModule;
|
|
@@ -101,6 +123,7 @@ declare const _default: {
|
|
|
101
123
|
'playwright/expect-expect': string;
|
|
102
124
|
'playwright/max-nested-describe': string;
|
|
103
125
|
'playwright/missing-playwright-await': string;
|
|
126
|
+
'playwright/no-conditional-expect': string;
|
|
104
127
|
'playwright/no-conditional-in-test': string;
|
|
105
128
|
'playwright/no-element-handle': string;
|
|
106
129
|
'playwright/no-eval': string;
|
|
@@ -110,6 +133,7 @@ declare const _default: {
|
|
|
110
133
|
'playwright/no-networkidle': string;
|
|
111
134
|
'playwright/no-page-pause': string;
|
|
112
135
|
'playwright/no-skipped-test': string;
|
|
136
|
+
'playwright/no-standalone-expect': string;
|
|
113
137
|
'playwright/no-unsafe-references': string;
|
|
114
138
|
'playwright/no-useless-await': string;
|
|
115
139
|
'playwright/no-useless-not': string;
|
|
@@ -152,6 +176,7 @@ declare const _default: {
|
|
|
152
176
|
'playwright/expect-expect': string;
|
|
153
177
|
'playwright/max-nested-describe': string;
|
|
154
178
|
'playwright/missing-playwright-await': string;
|
|
179
|
+
'playwright/no-conditional-expect': string;
|
|
155
180
|
'playwright/no-conditional-in-test': string;
|
|
156
181
|
'playwright/no-element-handle': string;
|
|
157
182
|
'playwright/no-eval': string;
|
|
@@ -161,6 +186,7 @@ declare const _default: {
|
|
|
161
186
|
'playwright/no-networkidle': string;
|
|
162
187
|
'playwright/no-page-pause': string;
|
|
163
188
|
'playwright/no-skipped-test': string;
|
|
189
|
+
'playwright/no-standalone-expect': string;
|
|
164
190
|
'playwright/no-unsafe-references': string;
|
|
165
191
|
'playwright/no-useless-await': string;
|
|
166
192
|
'playwright/no-useless-not': string;
|
|
@@ -181,6 +207,7 @@ declare const _default: {
|
|
|
181
207
|
'playwright/expect-expect': string;
|
|
182
208
|
'playwright/max-nested-describe': string;
|
|
183
209
|
'playwright/missing-playwright-await': string;
|
|
210
|
+
'playwright/no-conditional-expect': string;
|
|
184
211
|
'playwright/no-conditional-in-test': string;
|
|
185
212
|
'playwright/no-element-handle': string;
|
|
186
213
|
'playwright/no-eval': string;
|
|
@@ -190,6 +217,7 @@ declare const _default: {
|
|
|
190
217
|
'playwright/no-networkidle': string;
|
|
191
218
|
'playwright/no-page-pause': string;
|
|
192
219
|
'playwright/no-skipped-test': string;
|
|
220
|
+
'playwright/no-standalone-expect': string;
|
|
193
221
|
'playwright/no-unsafe-references': string;
|
|
194
222
|
'playwright/no-useless-await': string;
|
|
195
223
|
'playwright/no-useless-not': string;
|
|
@@ -203,14 +231,19 @@ declare const _default: {
|
|
|
203
231
|
};
|
|
204
232
|
rules: {
|
|
205
233
|
'expect-expect': eslint.Rule.RuleModule;
|
|
234
|
+
'max-expects': eslint.Rule.RuleModule;
|
|
206
235
|
'max-nested-describe': eslint.Rule.RuleModule;
|
|
207
236
|
'missing-playwright-await': eslint.Rule.RuleModule;
|
|
237
|
+
'no-commented-out-tests': eslint.Rule.RuleModule;
|
|
238
|
+
'no-conditional-expect': eslint.Rule.RuleModule;
|
|
208
239
|
'no-conditional-in-test': eslint.Rule.RuleModule;
|
|
240
|
+
'no-duplicate-hooks': eslint.Rule.RuleModule;
|
|
209
241
|
'no-element-handle': eslint.Rule.RuleModule;
|
|
210
242
|
'no-eval': eslint.Rule.RuleModule;
|
|
211
243
|
'no-focused-test': eslint.Rule.RuleModule;
|
|
212
244
|
'no-force-option': eslint.Rule.RuleModule;
|
|
213
245
|
'no-get-by-title': eslint.Rule.RuleModule;
|
|
246
|
+
'no-hooks': eslint.Rule.RuleModule;
|
|
214
247
|
'no-nested-step': eslint.Rule.RuleModule;
|
|
215
248
|
'no-networkidle': eslint.Rule.RuleModule;
|
|
216
249
|
'no-nth-methods': eslint.Rule.RuleModule;
|
|
@@ -218,11 +251,16 @@ declare const _default: {
|
|
|
218
251
|
'no-raw-locators': eslint.Rule.RuleModule;
|
|
219
252
|
'no-restricted-matchers': eslint.Rule.RuleModule;
|
|
220
253
|
'no-skipped-test': eslint.Rule.RuleModule;
|
|
254
|
+
'no-standalone-expect': eslint.Rule.RuleModule;
|
|
221
255
|
'no-unsafe-references': eslint.Rule.RuleModule;
|
|
222
256
|
'no-useless-await': eslint.Rule.RuleModule;
|
|
223
257
|
'no-useless-not': eslint.Rule.RuleModule;
|
|
224
258
|
'no-wait-for-selector': eslint.Rule.RuleModule;
|
|
225
259
|
'no-wait-for-timeout': eslint.Rule.RuleModule;
|
|
260
|
+
'prefer-comparison-matcher': eslint.Rule.RuleModule;
|
|
261
|
+
'prefer-equality-matcher': eslint.Rule.RuleModule;
|
|
262
|
+
'prefer-hooks-in-order': eslint.Rule.RuleModule;
|
|
263
|
+
'prefer-hooks-on-top': eslint.Rule.RuleModule;
|
|
226
264
|
'prefer-lowercase-title': eslint.Rule.RuleModule;
|
|
227
265
|
'prefer-strict-equal': eslint.Rule.RuleModule;
|
|
228
266
|
'prefer-to-be': eslint.Rule.RuleModule;
|
|
@@ -230,6 +268,7 @@ declare const _default: {
|
|
|
230
268
|
'prefer-to-have-count': eslint.Rule.RuleModule;
|
|
231
269
|
'prefer-to-have-length': eslint.Rule.RuleModule;
|
|
232
270
|
'prefer-web-first-assertions': eslint.Rule.RuleModule;
|
|
271
|
+
'require-hook': eslint.Rule.RuleModule;
|
|
233
272
|
'require-soft-assertions': eslint.Rule.RuleModule;
|
|
234
273
|
'require-top-level-describe': eslint.Rule.RuleModule;
|
|
235
274
|
'valid-expect': eslint.Rule.RuleModule;
|