eslint-plugin-playwright 2.4.0 → 2.4.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.
Files changed (3) hide show
  1. package/LICENSE +12 -13
  2. package/dist/index.cjs +3 -0
  3. package/package.json +29 -2
package/LICENSE CHANGED
@@ -1,21 +1,20 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Max Schmitt
3
+ Copyright (c) 2024 Mark Skelton
4
4
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
11
 
12
12
  The above copyright notice and this permission notice shall be included in all
13
13
  copies or substantial portions of the Software.
14
14
 
15
15
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/dist/index.cjs CHANGED
@@ -921,6 +921,9 @@ var no_conditional_expect_default = createRule({
921
921
  var no_conditional_in_test_default = createRule({
922
922
  create(context) {
923
923
  function checkConditional(node) {
924
+ if (node.type === "LogicalExpression" && node.operator === "??") {
925
+ return;
926
+ }
924
927
  const call = findParent(node, "CallExpression");
925
928
  if (!call)
926
929
  return;
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "eslint-plugin-playwright",
3
3
  "description": "ESLint plugin for Playwright testing.",
4
- "version": "2.4.0",
5
- "repository": "https://github.com/playwright-community/eslint-plugin-playwright",
4
+ "version": "2.4.1",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/mskelton/eslint-plugin-playwright.git"
8
+ },
6
9
  "author": "Mark Skelton <mark@mskelton.dev>",
10
+ "packageManager": "pnpm@8.12.0",
7
11
  "contributors": [
8
12
  "Max Schmitt <max@schmitt.mx>"
9
13
  ],
@@ -26,10 +30,33 @@
26
30
  "index.cjs",
27
31
  "index.d.ts"
28
32
  ],
33
+ "scripts": {
34
+ "build": "tsup src/index.ts --format cjs --out-dir dist",
35
+ "lint": "eslint .",
36
+ "format": "prettier --write .",
37
+ "format:check": "prettier --check .",
38
+ "test": "vitest --run --hideSkippedTests",
39
+ "test:watch": "vitest --reporter=dot --run",
40
+ "ts": "tsc --noEmit"
41
+ },
29
42
  "peerDependencies": {
30
43
  "eslint": ">=8.40.0"
31
44
  },
32
45
  "dependencies": {
33
46
  "globals": "^16.4.0"
47
+ },
48
+ "devDependencies": {
49
+ "@mskelton/eslint-config": "^9.0.1",
50
+ "@types/estree": "^1.0.6",
51
+ "@types/node": "^20.11.17",
52
+ "@typescript-eslint/parser": "^8.11.0",
53
+ "dedent": "^1.5.1",
54
+ "eslint": "^9.13.0",
55
+ "prettier": "^3.0.3",
56
+ "prettier-plugin-jsdoc": "^1.3.0",
57
+ "semantic-release": "^25.0.2",
58
+ "tsup": "^8.0.1",
59
+ "typescript": "^5.2.2",
60
+ "vitest": "^1.6.1"
34
61
  }
35
62
  }