eslint-plugin-playwright 2.0.0 → 2.0.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.
@@ -45,7 +45,7 @@ var __privateMethod = (obj, member, method) => {
45
45
  };
46
46
 
47
47
  // src/index.ts
48
- var import_globals = __toESM(require("globals"));
48
+ var import_globals = __toESM(require("globals"), 1);
49
49
 
50
50
  // src/utils/parseFnCall.ts
51
51
  var testHooks = /* @__PURE__ */ new Set(["afterAll", "afterEach", "beforeAll", "beforeEach"]);
package/index.cjs ADDED
@@ -0,0 +1,2 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
2
+ module.exports = require('./dist/index.cjs')
package/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import plugin from './dist/index.cjs'
2
+
3
+ export default plugin
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.0.0",
4
+ "version": "2.0.1",
5
5
  "repository": "https://github.com/playwright-community/eslint-plugin-playwright",
6
6
  "author": "Mark Skelton <mark@mskelton.dev>",
7
7
  "packageManager": "pnpm@8.12.0",
@@ -15,18 +15,19 @@
15
15
  "engines": {
16
16
  "node": ">=16.6.0"
17
17
  },
18
- "type": "commonjs",
18
+ "type": "module",
19
19
  "types": "./index.d.ts",
20
20
  "exports": {
21
21
  ".": {
22
22
  "types": "./index.d.ts",
23
- "import": "./index.mjs",
24
- "require": "./dist/index.js"
23
+ "import": "./index.js",
24
+ "require": "./index.cjs"
25
25
  }
26
26
  },
27
27
  "files": [
28
28
  "dist",
29
- "index.mjs",
29
+ "index.js",
30
+ "index.cjs",
30
31
  "index.d.ts"
31
32
  ],
32
33
  "scripts": {
package/index.mjs DELETED
@@ -1,3 +0,0 @@
1
- import plugin from './dist/index.js'
2
-
3
- export default plugin