eslint-plugin-playwright 2.2.1 → 2.2.2

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.
Files changed (2) hide show
  1. package/dist/index.cjs +12 -3
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -3083,7 +3083,7 @@ var prefer_web_first_assertions_default = createRule({
3083
3083
  return;
3084
3084
  const method = getStringValue(call.callee.property);
3085
3085
  const methodConfig = methods3[method];
3086
- if (!methodConfig)
3086
+ if (!Object.hasOwn(methods3, method))
3087
3087
  return;
3088
3088
  const notModifier = fnCall.modifiers.find(
3089
3089
  (mod) => getStringValue(mod) === "not"
@@ -3955,7 +3955,11 @@ var valid_test_tags_default = createRule({
3955
3955
  items: {
3956
3956
  oneOf: [
3957
3957
  { type: "string" },
3958
- { properties: { source: { type: "string" } }, type: "object" }
3958
+ {
3959
+ additionalProperties: false,
3960
+ properties: { source: { type: "string" } },
3961
+ type: "object"
3962
+ }
3959
3963
  ]
3960
3964
  },
3961
3965
  type: "array"
@@ -3964,7 +3968,11 @@ var valid_test_tags_default = createRule({
3964
3968
  items: {
3965
3969
  oneOf: [
3966
3970
  { type: "string" },
3967
- { properties: { source: { type: "string" } }, type: "object" }
3971
+ {
3972
+ additionalProperties: false,
3973
+ properties: { source: { type: "string" } },
3974
+ type: "object"
3975
+ }
3968
3976
  ]
3969
3977
  },
3970
3978
  type: "array"
@@ -4279,6 +4287,7 @@ var sharedConfig = {
4279
4287
  "playwright/valid-describe-callback": "error",
4280
4288
  "playwright/valid-expect": "error",
4281
4289
  "playwright/valid-expect-in-promise": "error",
4290
+ "playwright/valid-test-tags": "error",
4282
4291
  "playwright/valid-title": "error"
4283
4292
  }
4284
4293
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eslint-plugin-playwright",
3
3
  "description": "ESLint plugin for Playwright testing.",
4
- "version": "2.2.1",
4
+ "version": "2.2.2",
5
5
  "repository": "https://github.com/playwright-community/eslint-plugin-playwright",
6
6
  "author": "Mark Skelton <mark@mskelton.dev>",
7
7
  "contributors": [