eslint-plugin-playwright 2.7.0 → 2.7.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # ESLint Plugin Playwright
2
2
 
3
- [![Test](https://github.com/mskelton/eslint-plugin-playwright/actions/workflows/test.yml/badge.svg)](https://github.com/mskelton/eslint-plugin-playwright/actions/workflows/test.yml)
3
+ [![CI](https://github.com/mskelton/eslint-plugin-playwright/actions/workflows/ci.yml/badge.svg)](https://github.com/mskelton/eslint-plugin-playwright/actions/workflows/ci.yml)
4
4
  [![npm](https://img.shields.io/npm/v/eslint-plugin-playwright)](https://www.npmjs.com/package/eslint-plugin-playwright)
5
5
  [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
6
6
 
package/dist/index.cjs CHANGED
@@ -878,6 +878,9 @@ var missing_playwright_await_default = createRule({
878
878
  if (visited.has(parent)) return false;
879
879
  visited.add(parent);
880
880
  if (validTypes.has(parent.type)) return true;
881
+ if (parent.type === "MemberExpression" && isIdentifier(parent.property, /^(then|catch|finally)$/) && parent.parent?.type === "CallExpression") {
882
+ return checkValidity(parent.parent, visited);
883
+ }
881
884
  if (parent.type === "ArrayExpression") {
882
885
  return checkValidity(parent, visited);
883
886
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-playwright",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "ESLint plugin for Playwright testing.",
5
5
  "license": "MIT",
6
6
  "author": "Mark Skelton <mark@mskelton.dev>",
@@ -31,7 +31,7 @@
31
31
  "lint": "eslint .",
32
32
  "format": "oxfmt .",
33
33
  "format:check": "oxfmt --check .",
34
- "test": "vitest --hideSkippedTests",
34
+ "test": "vitest --reporter dot --hideSkippedTests",
35
35
  "typecheck": "tsc --noEmit",
36
36
  "ci": "yarn format:check && yarn lint && yarn typecheck"
37
37
  },