eslint-plugin-playwright 2.10.2 → 2.10.4

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 +4 -1
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -1124,7 +1124,7 @@ var missing_playwright_await_default = createRule({
1124
1124
  if (parent.type === "MemberExpression" && parent.object === node) {
1125
1125
  return checkValidity(parent, visited);
1126
1126
  }
1127
- if (parent.type === "CallExpression" && parent.callee === node) {
1127
+ if (parent.type === "CallExpression" && (parent.callee === node || isIdentifier(parent.callee, "expect"))) {
1128
1128
  return checkValidity(parent, visited);
1129
1129
  }
1130
1130
  if (parent.type === "VariableDeclarator") {
@@ -4738,6 +4738,9 @@ var valid_title_default = createRule({
4738
4738
  return;
4739
4739
  }
4740
4740
  const [argument] = node.arguments;
4741
+ if (call.type === "describe" && isFunction(argument)) {
4742
+ return;
4743
+ }
4741
4744
  const title = dereference(context, argument) ?? argument;
4742
4745
  if (!title) {
4743
4746
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-playwright",
3
- "version": "2.10.2",
3
+ "version": "2.10.4",
4
4
  "description": "ESLint plugin for Playwright testing.",
5
5
  "license": "MIT",
6
6
  "author": "Mark Skelton <mark@mskelton.dev>",