eslint-plugin-playwright 2.10.3 → 2.10.5

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 +6 -0
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -1112,6 +1112,9 @@ var missing_playwright_await_default = createRule({
1112
1112
  if (parent.type === "ConditionalExpression") {
1113
1113
  return checkValidity(parent, visited);
1114
1114
  }
1115
+ if (parent.type === "ChainExpression") {
1116
+ return checkValidity(parent, visited);
1117
+ }
1115
1118
  if (parent.type === "SpreadElement") {
1116
1119
  return checkValidity(parent, visited);
1117
1120
  }
@@ -4738,6 +4741,9 @@ var valid_title_default = createRule({
4738
4741
  return;
4739
4742
  }
4740
4743
  const [argument] = node.arguments;
4744
+ if (call.type === "describe" && isFunction(argument)) {
4745
+ return;
4746
+ }
4741
4747
  const title = dereference(context, argument) ?? argument;
4742
4748
  if (!title) {
4743
4749
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-playwright",
3
- "version": "2.10.3",
3
+ "version": "2.10.5",
4
4
  "description": "ESLint plugin for Playwright testing.",
5
5
  "license": "MIT",
6
6
  "author": "Mark Skelton <mark@mskelton.dev>",